/*@license For license information please refer to pap.licenses.txt*/ (self.webpackChunkgo_guides=self.webpackChunkgo_guides||[]).push([[360],{53597:function(e,t,n){var i;e.exports=(i=n(16912),function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=i},function(e,t){var n={d:(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},i={};n.r(i),n.d(i,{EventPacker:()=>a});var r=new RegExp("^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"),a=function(){function e(){}return e.prototype.packEvent=function(e){return this.packEvents([e])},e.prototype.packEvents=function(e){var t=this,n=new Map;e.forEach((function(e){var i;try{var r=JSON.parse(e),a=r.event.event_name,o=r.event.event_version,s=t.getMajorVersion(o);if(!a||!s)return;var c=null!==(i=n.get(a))&&void 0!==i?i:new Map,u={event_data:r};c.set(s,u),n.set(a,c)}catch(t){console.error("Failed to pack event: ".concat(e," \n ").concat(t))}}));var i={metadata:{packer_version:"1.0.5"},events:this.convertMapToObj(n)};return JSON.stringify(i)},e.prototype.unpack=function(e,t,n){var i,r;try{var a=JSON.parse(e).events,o=this.getMajorVersion(n);console.debug("Find the event for: event_name: ".concat(t," \t event_version: ").concat(n," \t"));var s=void 0;return null!=o&&(s=null===(r=null===(i=null==a?void 0:a[t])||void 0===i?void 0:i[o])||void 0===r?void 0:r.event_data),console.debug("eventData: ".concat(s)),s?JSON.stringify(s):null}catch(t){return console.error("Failed to unpack event payload: ".concat(e)),null}},e.prototype.getMajorVersion=function(e){if(!e)return null;var t=function(e){var t=e.match(r);return t&&t.length>2?t[1]:null}(e);return t?"v".concat(t):null},e.prototype.convertMapToObj=function(e){var t=this;return Object.fromEntries(Array.from(e.entries(),(function(e){var n=e[0],i=e[1];return i instanceof Map?[n,t.convertMapToObj(i)]:[n,i]})))},e}();t.EventPacker=i.EventPacker,Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){if(!o(e))return!1;for(var t=0,n=arguments.length<=1?0:arguments.length-1;t1?t-1:0),r=1;r=400&&n(new Error("Error on fetch ".concat(p," with ").concat(e.status," error code.")),y)})).catch((function(e){n(new Error("Error on fetch ".concat(p,". ").concat(e)),y)}))}var S=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"logError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EgClickstream",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:console;e&&n.error("".concat(t," - ").concat(e.toString()))}},{key:"postJson",value:function(e){D("POST",e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:console.error)}}],(n=null)&&I(t.prototype,n),i&&I(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:console;o(e)&&(this._batchQueue.push(e),this._scheduleAsyncProcessing(t))}},{key:"_scheduleAsyncProcessing",value:function(e){var t,n;this._isScheduled||(this._isScheduled=!0,t=this._processEvents(e),"requestIdleCallback"in(n=c())?n.requestIdleCallback(t):setTimeout(t,0))}},{key:"_processEvents",value:function(e){var t=this;return function(){S.postJson(t._batchQueue,e),t._batchQueue=[],t._isScheduled=!1}}}])&&T(t.prototype,n),i&&T(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function O(){return new E}var A=n(1);function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:N,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(this,e),this.context=n.initialContext,this.publisher=O(),this.callbacks=t,this.unpacker=new A.EventPacker}var t,n,i;return t=e,(n=[{key:"getNewInstance",value:function(e,t){return new this.constructor(e,t)}},{key:"publish",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this._createPayload(e,t);if(this._isValidPayload(n))try{this.publisher.publish(n,this._logErrorWithEmit.bind(this))}catch(e){this._logErrorWithEmit(e,b)}else this._logErrorWithEmit(new Error("publish failed due to invalid payload: ".concat(JSON.stringify(n))),v)}},{key:"updateContext",value:function(e){this.context=s({},this.context,e)}},{key:"_logErrorWithEmit",value:function(e,t){"function"==typeof this.callbacks[t]&&this.callbacks[t](e);var n={error:function(e){console.error(e)}};S.logError(e,void 0,n)}},{key:"_createPayload",value:function(e,t){return this._enrichContext(),s({},this._unpackServerPayload(t,e),e,this.context,this._getClickstreamOverrides())}},{key:"_unpackServerPayload",value:function(e,t){var n,i=t&&t.event,r=i&&i.event_name,a=i&&i.event_version;if(e&&r&&a){try{var o=this.unpacker.unpack(e,r,a);o||this._logErrorWithEmit(new Error("Unable to find a matching server payload for the provided [event_name]: ".concat(r," \t [event_version]: ").concat(a," \t [serverPayload]: ").concat(e)),v),n=JSON.parse(o)}catch(e){this._logErrorWithEmit(e,v)}return n}}},{key:"_enrichContext",value:function(){this.context=s({},this.context,this._getRequestContext(),this._getTimestamps(),this._getExperience())}},{key:"_getTimestamps",value:function(){return{timestamps:{event_origination_timestamp:Date.now()}}}},{key:"_getRequestContext",value:function(){return{request:{request_url:(t=c().location,t&&t.href||void 0),referrer_url:(e=c().document,e&&e.referrer||void 0)}};var e,t}},{key:"_getExperience",value:function(){return{experience:{experience_type:"Web",viewport_width:(e=c(),Math.round(e.innerWidth)||0),viewport_height:u(),resolution_width:l(),resolution_height:d()}};var e}},{key:"_getClickstreamOverrides",value:function(){var e=c().eg_clickstream_overrides;return e?{identifiers:{device_user_agent_id:e.device_user_agent_id},device_information:{device_type:e.device_type,device_os:e.device_os,device_os_version:e.device_os_version},experience:{experience_type:e.experience_type,experience_platform:e.experience_platform},user:{brand_customer_id:e.brand_customer_id}}:{}}},{key:"_isValidPayload",value:function(e){return a.apply(void 0,[e].concat(M(g)))&&a.apply(void 0,[e.event].concat(M(m)))&&a.apply(void 0,[e.experience].concat(M(h)))}}])&&R(t.prototype,n),i&&R(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}())}]))},37478:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){n=window}e.exports=n},function(e,t,n){(function(t){var i=n(2);function r(e){i.isTestEnvironment()&&console.log(e)}function a(){return"function"==typeof Date.now?Date.now():Number(new Date)}e.exports={toLogStore:function(e,n,i,r,o){try{"boolean"==typeof o&&o&&(!function(e,t,n,i){try{var r=document.createElement("meta");r.id="uis_debug_"+t+"_"+n+"_"+i,r.dataset.type="uis-prime-debug",r.dataset.publisher=t,r.dataset.event_type=n,r.dataset.timestamp=a(),r.dataset.debug=JSON.stringify(e),document.getElementsByTagName("head")[0].appendChild(r)}catch(o){console.log("error logging to meta tags: "+o)}}(e,n,i,r),console.log("[PlatformAnalyticsPrimeJs-publishing-event] Publisher: "+n+", evenType: "+i+", message: "+JSON.stringify(e,null,2)),void 0===t.uisPrimeLogStore&&(t.uisPrimeLogStore={})),void 0!==t.uisPrimeLogStore&&function(e,n,i,r,o){void 0===t.uisPrimeLogStore[n]&&(t.uisPrimeLogStore[n]={});void 0===t.uisPrimeLogStore[n][i]&&(t.uisPrimeLogStore[n][i]=[]);t.uisPrimeLogStore[n][i].push({timestamp:a(),message:JSON.parse(JSON.stringify(e)),publisher:n,eventType:i,label:r,isDebugEnabled:o})}(e,n,i,r,o)}catch(s){console.log("An error occurred while logging debug info: "+s)}},log:r,logError:function(e,t){var n=[];t&&n.push(t),n.push(e),e.stack&&n.push(e.stack),r(n.join("\n"))}}}).call(this,n(0))},function(e,t,n){(function(t){var i=n(12),r=n(13),a=n(14),o=n(15),s=/(?:(?:test|int|stress)\.expedia\.com|exp-(?:test|int)\.net|karmalab\.net|expedmz.com|staging.*\.(?:traveltainment\.de|myersmediagroup\.com)|localhost|127\.0\.0\.1|[a-z]+\.staging1-[a-z]+\.[a-z]+|docweb\.exp-test\.net|wwwexpediacom\.sandbox\.dev\.sb\.karmalab\.net)$/i,c=/.int.*\.sb\.karmalab\.net/i;function u(){return void 0!==t.location?Boolean(t.location.hostname.match(s)):-1===["prod","production"].indexOf("production")}function l(){return void 0!==t.location&&("localhost"===t.location.hostname||"127.0.0.1"===t.location.hostname||t.location.hostname.indexOf("dev")>0)}function d(){return!0}function f(){return window.performance}e.exports={isTestEnvironment:u,isLocalEnvironment:l,isBrowser:d,isPerformanceTimingSupported:function(){return f()&&window.performance.timing&&void 0!==window.performance.timing.navigationStart},isPerformanceMarkSupported:function(){return f()&&("function"==typeof window.performance.mark||"function"==typeof window.performance.webkitMark)},isTrackingDisabled:function(){return"1"===navigator.doNotTrack},isBeaconSupported:function(){return"function"==typeof navigator.sendBeacon},getConfiguration:function(){return l()?i:void 0!==t.location&&Boolean(t.location.hostname.match(c))?o:u()?r:a}}}).call(this,n(0))},function(e,t,n){(function(t){var n=["chase.com","ml.com","bankofamerica.com"];function i(e,t){return new RegExp("(^|\\.)"+t+"$","i").test(e)}function r(){var e={};return"function"==typeof performance.getEntriesByType?e=performance.getEntriesByType("mark"):"function"==typeof performance.webkitGetEntriesByType&&(e=performance.webkitGetEntriesByType("mark")),e}function a(e,t){var n=e.filter((function(e){return e.name===t}));return n.length>0?n[0]:void 0}e.exports={getPointOfSale:function(){var e=window.location.hostname;if("secure2.traveltainment.de"===e)return"expedia.at";if(i(e,"traveltainment.de"))return"expedia.de";if(["travel.hotels.com","vacations.alaskaair.com","reservations.meliapackages.com","travel.riu.com","getaway.bjs.com","travel.uk.hotels.com","travel.se.hotels.com","travel.fr.hotels.com","travel.no.hotels.com","travel.ca.hotels.com","travel.jp.hotels.com","us.expedia.cn"].filter((function(t){return t===e})).length>0)return e;var t=["thailand.airasiago.com","china.airasiago.com"].filter((function(t){return i(e,t)}));if(t&&t.length>0)return t[0];var r,a=["karmalab.net","eurostar.com","poweredbygps.com","citibanamex.expedia.mx"].filter((function(t){return i(e,t)})).length>0,o=["poweredbygps"].filter((function(t){return function(e,t){return new RegExp("(^|\\.)"+t+"|\\.$","i").test(e)}(e,t)})).length>0;return a||o?e:(r=e).match(RegExp(".*"+n.join("|")+"$","g"))?r:r.match(/(^|\.)(localhost)$/)?RegExp.$2:r.match(/([^.]+(\.(co|com|web|ne))?\.[^.]+)$/)?RegExp.$1:r},getMobileOrientation:function(){var e="";return/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(window.navigator.userAgent.toLowerCase())&&(e=window.innerHeight>window.innerWidth?"Portrait":"Landscape"),e},getCookie:function(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),i=0;i=1){var i=decodeURIComponent(t[1]).match(/MCMID\|([^|]*)/)?RegExp.$1:"unknown";i&&i.length>=1&&(n=i)}return n}}}).call(this,n(0))},function(e,t,n){(function(t){var i=n(7),r=n(3),a=n(11),o=n(1),s=o.toLogStore,c=o.log;e.exports={load:function(){u||(u=function(){l||(c("loading visitor API"),l=new Promise((function(e,n){try{void 0===t.Visitor&&(t.Visitor=a.Visitor),e(m())}catch(i){n(i)}})));return l}());return u},initVisitorAPI:m};var u=void 0;var l=void 0,d=!1;function f(e,t){setTimeout((function(){return p(e,t,1)}),50)}function p(e,t,n){!e||d||t.isClientSideMarketingCloudVisitorID()||(r.fetchMarketingIdFromCookie("AMCV_"+i.ADOBE_MARKETING_CLOUD_ORGANIZATION_ID)?(g("/cgp/simple/amcv.set?traceIdOfTheView="+e),d=!0):(n+=1)<4?setTimeout((function(){return p(e,t,n)}),50):(g("/cgp/simple/amcv.set?traceIdOfTheView="+e+"&missingAmcvCookie=true"),d=!0))}function g(e){var t=window.uisDebugXmlHttpRequest?window.uisDebugXmlHttpRequest:new XMLHttpRequest;t.onreadystatechange=function(){4===t.readyState&&console.log("sent call to CGP on visitor ID generation %o",t.status)},t.open("GET",e,!0),t.withCredentials=!0,t.send(),d=!0,s(e,"papj","load","fireAmcvBeacon",!0)}function m(e){c("fetching visitor");var n=t.Visitor.getInstance(i.ADOBE_MARKETING_CLOUD_ORGANIZATION_ID,{trackingServer:i.OMNITURE_TRACKING_SERVER,trackingServerSecure:i.OMNITURE_TRACKING_SERVER_SECURE,marketingCloudServer:i.OMNITURE_TRACKING_SERVER,marketingCloudServerSecure:i.OMNITURE_TRACKING_SERVER_SECURE,loadTimeout:5e3,cookieDomain:r.getDomain(),takeTimeoutMetrics:!0,overwriteCrossDomainMCIDAndAID:!0});return c("visitor found!"),s("Visitor","papj","load","visitorLoad",!1),n.getMarketingCloudVisitorID((function(){f(e,n)})),n}}).call(this,n(0))},function(e,t,n){var i=n(7),r=n(2),a=n(3).getDomain,o=n(4),s=n(20),c=void 0;e.exports.load=function(){return c||(c=function(){u||(u=new Promise((function(e,t){var n=function(){o.load().then((function(){try{var n=r.getConfiguration().adobeAnalyticsAccount,o=window.s_gi(n);o.trackingServer=i.OMNITURE_TRACKING_SERVER,o.trackingServerSecure=i.OMNITURE_TRACKING_SERVER_SECURE,o.trackDownloadLinks=!0,o.trackExternalLinks=!1,o.trackInlineStats=!1,o.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,doc,pdf,xls",o.linkInternalFilters=["javascript:",document.domain,a].join(","),o.linkLeaveQueryString=!1,o.linkTrackVars="None",o.linkTrackEvents="None",o.server=document.domain,o.usePlugins=!0,o.loadModule("AudienceManagement"),o.doPlugins=function(e){e.AudienceManagement.setup({partner:1745,containerNSID:0,uuidCookie:{name:"aam_uuid",days:30}}),e.prop14&&e.visitor.setCustomerIDs({hasheml:{id:e.prop14,authState:1}})},o.handlePPVevents=function(){if("undefined"!=typeof s_c_il){for(var e=0,t=s_c_il.length;es?t:s)+","+c+","+(e>l?e:l)+","+(a>d?a:d)+","+(r>u?r:u)),n.c_w("s_ppv",o)}}},o.p_fo=function(e){var t=this;return t.__fo||(t.__fo={}),!t.__fo[e]&&(t.__fo[e]={},!0)},o.getPercentPageViewed=function(e,t){var n=this,i=n.c_r("s_ppv");(i=-11?n-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{overridenMicroMessages:[],deviceUserAgentId:void 0,isPwa:!1,isPublishWebVitals:!1,isAutomaticAdobePageViewDisabled:!1,additionalHeaders:{}};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._ctx=f.createContextualInfo(n),this.analyticsPayload=[];try{g&&(r.reset(),this._ctx.isClientSidePageLoad=!0)}catch(h){console.error("PlatformAnalyticsPrime: Got this Error while resetting Performance metrics "+h)}this.pm=r,this.cl=new a({debugLogger:s.toLogStore,pageName:this._ctx.pageName,guid:this._ctx.deviceId}),this.isDebugEnabled=!1,g=this,r.setPlatformAnalyticsClass(e,n),this._hasCollectedEveryAnalyticsPayloads=new Promise((function(e){t._resolveHasCollectedEveryAnalyticsPayloads=e})),this._ctx.isCrossSite&&this._resolveHasCollectedEveryAnalyticsPayloads(),this.pageName=this.context.pageName,this.overridenMicroMessages=this._ctx.overridenMicroMessages,this.overridePageSchema=l.searchPageIdentity(this.overridenMicroMessages)}return i(e,[{key:"collect",value:function(e){try{if(!this._ctx.pageName||this._ctx.pageName===f.UNSPECIFIED){var t=f.updatePageName(this,e);this.getClientLog().setConfiguration({pageName:t})}0===this.analyticsPayload.length&&f.updateContextualInfoWithFirstPayload(this._ctx,e),p.injectMarketingData(e,this._ctx.isClientSidePageLoad),this.analyticsPayload.push(e),this._resolveHasCollectedEveryAnalyticsPayloads(),void 0!==e.debug&&(i=!0,(n=this).isDebugEnabled=i,n.pm.isDebugEnabled=i,n.cl.setConfiguration({isDebugEnabled:i}),p.updateDebugData(e),s.toLogStore(e.debug,"papj","load",this._ctx.pageName,this.isDebugEnabled)),this.fireAmcvBeaconWithTraceId(e)}catch(h){console.log("PlatformAnalyticsPrime: Error while collecting payload "+h),s.logError(h,"Error while collecting payload")}var n,i}},{key:"fireAmcvBeaconWithTraceId",value:function(e){var t=this;return this.payload=e,o.load().then((function(){t.payload&&o.initVisitorAPI(t.payload.traceId)}))}},{key:"markPageUsable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{microMessages:[],callback:function(){}},t=(e||{}).microMessages||[],n=(e||{}).callback||function(){};"function"!=typeof n&&console.error("[PlatformAnalyticsPrime] callback argument is not a function"),this.pm.markPageUsable({microMessages:t,callback:n})}},{key:"publishWebVitals",value:function(){this.pm.publishWebVitals()}},{key:"publish",value:function(){var e=this;try{if(0===this.analyticsPayload.length)throw new Error("PlatformAnalyticsPrime: Collect analytics payload before publish");if(this._ctx.hasPub){var t=new Error("PlatformAnalyticsPrime: Data is already published on this platform analytics instance. Publishing again with the same instance indicates an error in the implementation.");this.getClientLog().logError(t)}return this._ctx.hasPub=!0,u.load().then((function(){return new c({context:e._ctx,isDebugEnabled:e.isDebugEnabled}).publish(e.analyticsPayload),e.analyticsPayload=[],!0}))}catch(n){return console.error("PlatformAnalyticsPrime: Got this Error while publishing view event "+n),!1}}},{key:"publishClientSidePayload",value:function(){var e=this;try{for(var t=arguments.length,n=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1];try{return t instanceof Array||(t=[t]),Promise.all([this._hasCollectedEveryAnalyticsPayloads,u.load()]).then((function(){new c({context:e._ctx,isDebugEnabled:e.isDebugEnabled}).trackEvent(t,n)}))}catch(i){return this.getClientLog().logError(new Error("PlatformAnalytics: Got this Error while publishing track event "+i)),!1}}},{key:"trackAndPublishToAdobe",value:function(e){try{var t=e.microMessages,n=this._ctx.traceIdOfTheView,i=void 0!==this._ctx.traceIdOfTheView,r=this._ctx.applicationName;if(!(void 0!==this._ctx.applicationName)||!i||void 0===t){var a=new Error("PlatformAnalyticsPrime: missing input for trackAndPublishToAdobe "+{traceIdOfTheView:n,applicationName:r});return this.getClientLog().logError(a),Promise.reject(a)}return new c({context:this._ctx,isDebugEnabled:this.isDebugEnabled}).trackPageViewAndPublishToAdobe(e)}catch(a){return this.getClientLog().logError(new Error("PlatformAnalytics: Error at trackAndPublishToAdobe: "+a)),Promise.reject(a)}}},{key:"appendCrossDomainTrackingTo",value:function(e){return o.load().then((function(t){return t.appendVisitorIDsTo(e)})).catch((function(e){return s.logError(e)}))}},{key:"getPerformanceMetrics",value:function(){return this.pm}},{key:"getClientLog",value:function(){return this.cl}},{key:"context",get:function(){return new d(this)}}]),e}();m.newInstance=function(){return new m(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{overridenMicroMessages:[],deviceUserAgentId:void 0})},m.getInstance=function(){return g},e.exports=m},function(e,t,n){var i=function(){function e(e,t){for(var n=0;n0?n[0]:void 0}function u(){return"function"==typeof(e||{}).getEntriesByType?e.getEntriesByType("mark"):"function"==typeof(e||{}).webkitGetEntriesByType?e.webkitGetEntriesByType("mark"):r()}return{mark:function(t){"function"==typeof(e||{}).mark?e.mark(t):"function"==typeof(e||{}).webkitMark?e.webkitMark(t):r().push({name:t,entryType:"mark",startTime:o(),duration:0})},measure:function(t,n,i){if("function"==typeof(e||{}).measure)e.measure(t,n,i);else if("function"==typeof(e||{}).webkitMeasure)e.webkitMeasure(t,n,i);else{var r=0,c=o();if(n){var u=s(n);u?r=u.startTime:((e||{}).timing||{})[n]&&(r=e.timing[n]-e.timing.navigationStart)}if(i){var l=s(i);l?c=l.startTime:((e||{}).timing||{})[i]&&(c=e.timing[i]-e.timing.navigationStart)}a().push({name:t,entryType:"measure",startTime:r,duration:c-r})}},getGaMarks:r,getGaMeasures:a,getEntriesByName:function(t){return"function"==typeof(e||{}).getEntriesByName?e.getEntriesByName(t):"function"==typeof(e||{}).webkitGetEntriesByName?e.webkitGetEntriesByName(t):[]},findMark:s,findMeasure:function(t){return c(function(){if("function"==typeof(e||{}).getEntriesByType)return e.getEntriesByType("measure");if("function"==typeof(e||{}).webkitGetEntriesByType)return e.webkitGetEntriesByType("measure");return a()}(),t)},clearMarks:function(n){"function"==typeof(e||{}).clearMarks?e.clearMarks(n):t.gaMarks=u().filter((function(e){return e.name!==n}))},findSpecificRow:c,toJSON:function(){return"function"==typeof(e||{}).toJSON?e.toJSON():{timing:(e||{}).timing||{}}}}}();function i(){return"function"==typeof Date.now?Date.now():Number(new Date)}e.exports=n}).call(t,n(0))},function(e,t,n){(function(t){var i=n(3);function r(e){i.isTestEnvironment()&&console.log(e)}e.exports={toLogStore:function(e){try{(i.isTestEnvironment()||function(e){if(void 0===document.cookie)return!1;return-1!==document.cookie.indexOf(e)}("paLogStore=true"))&&(t&&t.paLogStore&&Array.isArray(t.paLogStore)||(t.paLogStore=[],t.paLogStoreSize=100),t.paLogStore.push(e),t.paLogStore.length>t.paLogStoreSize&&t.paLogStore.shift())}catch(n){r(n)}},log:r}}).call(t,n(0))},function(e,t,n){(function(t){var n=/(?:(?:test|int|stress)\.expedia\.com|exp-(?:test|int)\.net|karmalab\.net|expedmz.com|staging.*\.(?:traveltainment\.de|myersmediagroup\.com)|localhost|docweb\.exp-tools\.net)$/i;function i(){return!0}function r(){return window.performance}e.exports={isTestEnvironment:function(){return"undefined"!=typeof location?Boolean(location.hostname.match(n)):-1===["prod","production"].indexOf(t.env.NODE_ENV)},isLocalEnvironment:function(){return"undefined"!=typeof location&&"localhost"===location.hostname},isBrowser:i,isPerformanceTimingSupported:function(){return r()&&window.performance.timing&&void 0!==window.performance.timing.navigationStart},isPerformanceMarkSupported:function(){return r()&&("function"==typeof window.performance.mark||"function"==typeof window.performance.webkitMark)},isTrackingDisabled:function(){return navigator&&"1"===navigator.doNotTrack},isBeaconSupported:function(){return navigator&&"function"==typeof navigator.sendBeacon}}}).call(t,n(19))},function(e,t,n){var i=n(5);e.exports=new i},function(e,t,n){(function(t){var r=n(6),a=n(1),o=n(18),s="Page Usable",c="Page Change",u=["deviceId","siteId","requestId","pageName","additionalData"];function l(e,t){e&&u.forEach((function(n){e.hasOwnProperty(n)&&("siteId"===n&&isNaN(e[n])?console.log("WARNING: siteId must be Integer!"):t[n]=e[n])}))}var d=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ctx={},this.waitingMessage={},this.setContext(n),this.findMark=function(e){return a.findMark(e)},this.findMeasure=function(e){return a.findMeasure(e)},this.clearMarks=function(e){return a.clearMarks(e)},this.mark=function(e){return a.mark(e)},this.measure=function(e,t,n){return a.measure(e,t,n)},this.pul=function(e,n){void 0===t.puListener?(t.puListener=e,t.puScope=n):console.log("PageUsableListener has already been initialized")}}return i(e,[{key:"setContext",value:function(e){l(e,this.ctx)}},{key:"getFilteredPageUsableTime",value:function(){var e=this.getPageUsableTime();return e&&e.length>0&&(e=parseFloat((e[0].startTime/1e3).toFixed(2))),e}},{key:"justMarkPageUsable",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments[1];(n||t&&(t.callback||t.microMessages))&&(this.microMessages=(t||{}).microMessages||n.microMessages,t=(t||{}).callback||n.callback),setTimeout((function(){e.findMark(s)?console.log("WARNING: marking a page that was already usable - value won't be updated - use reset() first"):(e.clearMarks(s),e.mark(s));var n=e.getFilteredPageUsableTime();"function"==typeof e.puListener&&e.puListener.call(e.puScope,n),"function"==typeof t&&t(n,e.ctx)}),50)}},{key:"publish",value:function(e){var t=(e||{}).pageUsableTime||this.getFilteredPageUsableTime(),n=(e||{}).microMessages||[];if(this.PlatformAnalytics&&"function"==typeof this.PlatformAnalytics.getInstance&&this.PlatformAnalytics.getInstance())r.publishPageUsableToUisPrime(this.PlatformAnalytics.getInstance(),n,t),this.waitingMessage={};else if(e&&e.uisPrime)this.waitingMessage={uisPrime:!0,microMessages:n,pageUsableTime:t};else if(this.setContext(e),this.findMark(s))try{!function(e,t){var n={};l(e,n),n.pageUsableTime=t,o.publish(n)}(this.ctx,this.getFilteredPageUsableTime())}catch(i){console.log("Unable to publish performance metrics"+i.message)}else console.log("WARNING: trying to publish before page being usable")}},{key:"markPageUsable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments[2];if(r||e.microMessages||e.callback){var a=e.microMessages||(r||{}).microMessages;i=e.callback||(r||{}).callback,this.justMarkPageUsable({microMessages:a,callback:function(e){n.publish({uisPrime:!0,microMessages:a}),i(e)}})}else this.setContext(e),this.justMarkPageUsable((function(e,r){if(isNaN(n.ctx.siteId)){var a=isNaN(t.siteid)?isNaN(t.site_id)?isNaN(t.siteId)?NaN:t.siteId:t.site_id:t.siteid;isNaN(a)||(r.siteId=parseInt(a,10))}n.publish(r),"function"==typeof i&&i(e,r)}))}},{key:"getPageUsableTime",value:function(){var e=(this.findMark(s)||{}).startTime-((this.findMark(c)||{}).startTime||0);return Math.round(10*e)/10}},{key:"reset",value:function(e){this.setContext(e),this.clearMarks(s),this.clearMarks(c),this.mark(c)}},{key:"setPlatformAnalyticsClass",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isPublishWebVitals:!1};this.PlatformAnalytics=e,this.waitingMessage.pageUsableTime?this.publish(this.waitingMessage):this.findMark(s)&&this.publish({uisPrime:!0}),r.publishInteractionMetrics(this.PlatformAnalytics.getInstance()),t.isPublishWebVitals&&r.publishWebVitals(this.PlatformAnalytics.getInstance())}},{key:"publishWebVitals",value:function(){this.PlatformAnalytics&&"function"==typeof this.PlatformAnalytics.getInstance&&this.PlatformAnalytics.getInstance()&&r.publishWebVitals(this.PlatformAnalytics.getInstance())}}]),e}();e.exports=d}).call(t,n(0))},function(e,t,n){(function(t){var i=n(7),r=n(9),a=n(1),o=n(11),s=n(12),c=n(13),u=n(14),l=n(15),d={navigator:t.navigator||{}};e.exports={publishInteractionMetrics:function(e){if(e&&"function"==typeof e.trackEvent){i.collect({schemaName:"interactivityMetrics",messageContent:{}},(function(t){r.collect(t,o,(function(t){0!==Object.keys(t.messageContent).length&&e.trackEvent(t,"page-usable")}))}))}else console.error("[PerformanceMetrics] cannot publish interactionMetrics to Uis Prime (platformAnalytics not defined)")},publishPageUsableToUisPrime:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e&&"function"==typeof e.trackEvent){Array.isArray(t)||(t=[t]);var i={schemaName:"performanceMetrics",messageContent:{markName:"Page Usable",markValue:n}},r={schemaName:"corePerformanceMetrics",messageContent:{pageUsableTime:n}};if(c.collect(i,d),s.collect(i,a,(function(n){u.collect(n,a,(function(n){t.push(n),e.trackEvent(t,"page-usable")}))})),e.trackEvent(r,"page-usable"),i.messageContent.pageLoadTime){var o={schemaName:"additionalPerformanceMetrics",messageContent:{pageLoadTime:i.messageContent.pageLoadTime}};e.trackEvent(o,"timing")}}else console.error("[PerformanceMetrics] cannot publish page usable to Uis Prime (platformAnalytics not defined)")},publishWebVitals:function(e){if(e&&"function"==typeof e.trackEvent){var t=l.uisPrimeOnReport(e);l.report(t)}else console.error("[PerformanceMetrics] cannot publish web vitals to Uis Prime (platformAnalytics not defined)")}}}).call(t,n(0))},function(e,t,n){(function(t){n(8),e.exports={collect:function(e,n){try{t.perfMetrics.onFirstInputDelay((function(t){t&&(e.messageContent.firstInputDelay=t),n(e)}))}catch(i){n(e)}}}}).call(t,n(0))},function(e,t){!function(e,t){var n,i,r,a=[],o={passive:!0,capture:!0},s=new Date,c="pointerup",u="pointercancel";function l(e,a){n||(n=a,i=e,r=new Date,p(t),d())}function d(){i>=0&&i1e12?new Date:performance.now())-n.timeStamp;"pointerdown"==n.type?function(n,i){function r(){l(n,i),s()}function a(){s()}function s(){t(c,r,o),t(u,a,o)}e(c,r,o),e(u,a,o)}(i,n):l(i,n)}}function p(e){["click","mousedown","keydown","touchstart","pointerdown"].forEach((function(t){e(t,f,o)}))}p(e),self.perfMetrics=self.perfMetrics||{},self.perfMetrics.onFirstInputDelay=function(e){a.push(e),d()}}(addEventListener,removeEventListener)},function(e,t,n){n(10),e.exports={collect:function(e,t,n){try{t.getFirstConsistentlyInteractive().then((function(t){t&&(e.messageContent.timeToInteractive=t),n(e)}))}catch(i){n(e)}}}},function(e,t,n){(function(e){!function(){if("PerformanceLongTaskTiming"in e){var t=e.__tti={e:[]};t.o=new PerformanceObserver((function(e){t.e=t.e.concat(e.getEntries())})),t.o.observe({entryTypes:["longtask"]})}}()}).call(t,n(0))},function(e,t,n){(function(n){var i;!function(){var r=window===this?this:void 0!==n&&null!=n?n:this,a="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};function o(){o=function(){},r.Symbol||(r.Symbol=c)}var s=0;function c(e){return"jscomp_symbol_"+(e||"")+s++}function u(){o();var e=r.Symbol.iterator;e||(e=r.Symbol.iterator=r.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&a(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return l(this)}}),u=function(){}}function l(e){var t=0;return function(e){return u(),e={next:e},e[r.Symbol.iterator]=function(){return this},e}((function(){return tt||(clearTimeout(e.j),e.j=setTimeout((function(){var t=performance.timing.navigationStart,n=h(e.g,e.b);t=(window.a&&window.a.A?1e3*window.a.A().C-t:0)||performance.timing.domContentLoadedEventEnd-t;if(e.u)var i=e.u;else performance.timing.domContentLoadedEventEnd?i=(i=performance.timing).domContentLoadedEventEnd-i.navigationStart:i=null;var r=performance.now();null===i&&y(e,Math.max(n+5e3,r+1e3));var a=e.a;5e3>r-n?n=null:n=5e3>r-(n=a.length?a[a.length-1].end:t)?null:Math.max(n,i),n&&(e.s(n),clearTimeout(e.j),e.i=!1,e.c&&e.c.disconnect(),e.h&&e.h.disconnect()),y(e,performance.now()+1e3)}),t-performance.now()),e.v=t)}v.prototype.getFirstConsistentlyInteractive=function(){var e=this;return new Promise((function(t){e.s=t,"complete"==document.readyState?b(e):window.addEventListener("load",(function(){b(e)}))}))},v.prototype.m=function(e){this.f.set(e,performance.now())},v.prototype.l=function(e){this.f.delete(e)},v.prototype.B=function(){y(this,performance.now()+5e3)},r.Object.defineProperties(v.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return[].concat(f(this.f.values()))}}});var k={getFirstConsistentlyInteractive:function(e){return e=e||{},"PerformanceLongTaskTiming"in window?new v(e).getFirstConsistentlyInteractive():Promise.resolve(null)}};void 0!==e&&e.exports?e.exports=k:void 0===(i=function(){return k}.apply(t,[]))||(e.exports=i)}()}).call(t,n(0))},function(e,t,n){(function(t){function n(e,t,n,i){void 0!==n&&void 0!==i&&(e[t]=n-i)}e.exports={collect:function(e,i,r){var a=i.toJSON();void 0!==a.timing?(n(e.messageContent,"dnsLookupTime",a.timing.domainLookupEnd,a.timing.domainLookupStart),n(e.messageContent,"timeToFirstByte",a.timing.responseStart,a.timing.fetchStart),n(e.messageContent,"tcpConnectionTime",a.timing.connectEnd,a.timing.connectStart),n(e.messageContent,"pageLoadTime",a.timing.domContentLoadedEventEnd,a.timing.navigationStart),e.messageContent.pageLoadTime&&e.messageContent.pageLoadTime<0?t.addEventListener("load",(function(){n(e.messageContent,"pageLoadTime",a.timing.domContentLoadedEventEnd,a.timing.navigationStart),r(e)})):r(e)):r(e)}}}).call(t,n(0))},function(e,t){function n(e,t,n){void 0!==n&&(e[t]=n)}e.exports={collect:function(e,t){if(t&&t.navigator){var i=t.navigator,r=i.connection||i.mozConnection||i.webkitConnection;r&&(n(e.messageContent,"networkEffectiveType",r.effectiveType),n(e.messageContent,"networkDownLink",r.downlink))}}}},function(e,t,n){(function(t){e.exports={collect:function(e,n,i){if(void 0!==t.PerformancePaintTiming){var r=n.getEntriesByName("first-contentful-paint");if(r&&r.length>0){var a=r[0];return e.messageContent.firstContentfulPaint=Math.round(a.startTime+a.duration),void i(e)}if(void 0!==t.PerformanceObserver)new t.PerformanceObserver((function(t){var n=!0,r=!1,a=void 0;try{for(var o,s=t.getEntries()[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value;"first-contentful-paint"===c.name&&(e.messageContent.firstContentfulPaint=Math.round(c.startTime+c.duration),i(e))}}catch(u){r=!0,a=u}finally{try{!n&&s.return&&s.return()}finally{if(r)throw a}}})).observe({entryTypes:["paint"]});else i(e)}else i(e)}}}).call(t,n(0))},function(e,t,n){var i=n(16),r=n(17),o=function(){};e.exports={report:function(e){e&&"function"==typeof e&&(i.onCLS(e),i.onLCP(e),i.onFID(e),i.onTTFB(e),i.onFCP(e),i.onINP(e))},uisPrimeOnReport:function(e){var t=o;return e&&"function"==typeof e.trackEvent?t=function(t){(function(e){var t=[],n=e&&e.name,i=e&&e.value,o=r[n]||{},s=o.metricName,c=o.schemas;return s&&c&&c.forEach((function(e){t.push({schemaName:e,messageContent:a({},s,i)})})),t})(t).forEach((function(t){return e.trackEvent(t,"timing")}))}:console.error("[PerformanceMetrics] cannot publish web vitals to Uis Prime (platformAnalytics not defined)"),t}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"CLSThresholds",(function(){return T})),n.d(t,"FCPThresholds",(function(){return S})),n.d(t,"FIDThresholds",(function(){return R})),n.d(t,"INPThresholds",(function(){return q})),n.d(t,"LCPThresholds",(function(){return Q})),n.d(t,"TTFBThresholds",(function(){return Z})),n.d(t,"getCLS",(function(){return E})),n.d(t,"getFCP",(function(){return w})),n.d(t,"getFID",(function(){return N})),n.d(t,"getINP",(function(){return z})),n.d(t,"getLCP",(function(){return $})),n.d(t,"getTTFB",(function(){return te})),n.d(t,"onCLS",(function(){return E})),n.d(t,"onFCP",(function(){return w})),n.d(t,"onFID",(function(){return N})),n.d(t,"onINP",(function(){return z})),n.d(t,"onLCP",(function(){return $})),n.d(t,"onTTFB",(function(){return te}));var i,r,a,o,s,c=-1,u=function(e){addEventListener("pageshow",(function(t){t.persisted&&(c=t.timeStamp,e(t))}),!0)},l=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},d=function(){var e=l();return e&&e.activationStart||0},f=function(e,t){var n=l(),i="navigate";return c>=0?i="back-forward-cache":n&&(document.prerendering||d()>0?i="prerender":document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},p=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var i=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},g=function(e,t,n,i){var r,a;return function(o){t.value>=0&&(o||i)&&((a=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},m=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},h=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},v=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},b=-1,y=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},k=function(e){"hidden"===document.visibilityState&&b>-1&&(b="visibilitychange"===e.type?e.timeStamp:0,C())},_=function(){addEventListener("visibilitychange",k,!0),addEventListener("prerenderingchange",k,!0)},C=function(){removeEventListener("visibilitychange",k,!0),removeEventListener("prerenderingchange",k,!0)},I=function(){return b<0&&(b=y(),_(),u((function(){setTimeout((function(){b=y(),_()}),0)}))),{get firstHiddenTime(){return b}}},D=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},S=[1800,3e3],w=function(e,t){t=t||{},D((function(){var n,i=I(),r=f("FCP"),a=p("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTimei.value&&(i.value=r,i.entries=a,n())},s=p("layout-shift",o);s&&(n=g(e,i,T,t.reportAllChanges),h((function(){o(s.takeRecords()),n(!0)})),u((function(){r=0,i=f("CLS",0),n=g(e,i,T,t.reportAllChanges),m((function(){return n()}))})),setTimeout(n,0))})))},O={passive:!0,capture:!0},A=new Date,P=function(e,t){i||(i=t,r=e,a=new Date,L(removeEventListener),M())},M=function(){if(r>=0&&r1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){P(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,O),removeEventListener("pointercancel",i,O)};addEventListener("pointerup",n,O),addEventListener("pointercancel",i,O)}(t,e):P(t,e)}},L=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,x,O)}))},R=[100,300],N=function(e,t){t=t||{},D((function(){var n,a=I(),s=f("FID"),c=function(e){e.startTimet.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var i={id:e.interactionId,latency:e.duration,entries:[e]};K[i.id]=i,J.push(i)}J.sort((function(e,t){return t.latency-e.latency})),J.splice(10).forEach((function(e){delete K[e.id]}))}},z=function(e,t){t=t||{},D((function(){var n;H();var i,r=f("INP"),a=function(e){e.forEach((function(e){e.interactionId&&X(e),"first-input"===e.entryType&&!J.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&X(e)}));var t,n=(t=Math.min(J.length-1,Math.floor(W()/50)),J[t]);n&&n.latency!==r.value&&(r.value=n.latency,r.entries=n.entries,i())},o=p("event",a,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});i=g(e,r,q,t.reportAllChanges),o&&("interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),h((function(){a(o.takeRecords()),r.value<0&&W()>0&&(r.value=0,r.entries=[]),i(!0)})),u((function(){J=[],G=B(),r=f("INP"),i=g(e,r,q,t.reportAllChanges)})))}))},Q=[2500,4e3],Y={},$=function(e,t){t=t||{},D((function(){var n,i=I(),r=f("LCP"),a=function(e){var t=e[e.length-1];t&&t.startTimeperformance.now())return;n.value=Math.max(a-d(),0),n.entries=[r],i(!0),u((function(){n=f("TTFB",0),(i=g(e,n,Z,t.reportAllChanges))(!0)}))}}))}},function(e,t){var n="interactivityMetrics",i="corePerformanceMetrics",r="additionalPerformanceMetrics",a={CLS:{metricName:"cumulativeLayoutShift",schemas:[n,i]},LCP:{metricName:"largestContentfulPaint",schemas:[n,i]},FID:{metricName:"firstInputDelay",schemas:[n,r]},INP:{metricName:"interactionToNextPaint",schemas:[i]},TTFB:{metricName:"timeToFirstByte",schemas:[r]},FCP:{metricName:"firstContentfulPaint",schemas:[r]}};e.exports=a},function(e,t,n){var i=n(2).toLogStore,r=n(2).log,a=n(20),o=n(3),s=o.isLocalEnvironment()?"https://collector.test.expedia.com":"/cl/data";function c(e){return!!(e&&e.deviceId&&e.pageName&&e.pageUsableTime&&e.requestId)}e.exports={publish:function(e){if(!c(e))return r("Not valid PM formatted data: "),r(e),!1;this.requestBody=e,this.requestBody.utcTimestamp=Date.now(),this.requestBody.navigationTimingSupport=o.isPerformanceTimingSupported(),this.requestBody.performanceMarkSupport=o.isPerformanceMarkSupported(),this.requestBody.beaconApiSupport=o.isBeaconSupported();var t=a.sendBeacon(s+"/perfmetrics.json?persist=true",this.requestBody),n={publisher:"PM Publisher",status:"",sentData:this.requestBody};return"boolean"==typeof t?(n.status=t?"queued":"failed",i(n)):(t.onload=function(){n.status=t.status,i(n)},t.onerror=function(){n.status="error",i(n)},t.ontimeout=function(){n.status="timeout",i(n)}),t},isValid:c}},function(e,t){var n,i,r=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var c,u=[],l=!1,d=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&p())}function p(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(c=u,u=[];++d1)for(var n=1;n0&&Object.keys(e).forEach((function(i){n=i+"="+String(e[i]).replace(/\n|\r/gm,""),t.push(n)}));return t}(e.data)));if(t){var r="level",a=t;n.push(r+"="+a)}return n}(e,t)).concat(n)},normalizeMessageParams:function(e){if(!e)return[];if("string"==typeof e)return[e];if("object"===(void 0===e?"undefined":i(e))&&!Array.isArray(e)){var t=[];Object.keys(e).forEach((function(n){var i;t.push(encodeURIComponent(n)+"="+encodeURIComponent((i=e[n],String(i).replace(/"/g,"""))))})),e=t}return e},normalizeError:function(e){var t="NA",n=t,i=t,r=t,a=void 0;try{e&&e.stack&&(a=e.stack.match(/(([^)]+\d+))/)||e.stack.match(/@([^)]+\d+)\n/))&&(n=(a=a[1].split(":")).pop(),i=a.pop(),r=a.join(":"))}catch(o){console.log(o+" dcs:util.js")}return e&&(e={sourceURL:e.sourceURL||e.fileName||r,line:e.line||e.lineNumber||i,col:e.columnNumber||n,message:e.message,stack:e.stack||t}),e},logErrorOnConsole:function(e){console.error(e)},expGetISODateString:function(e){return e.toISOString()?e.toISOString():e.getFullYear().toString()+"-"+e.getMonth()+"-"+e.getDate()+"T"+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()},sendBeacon:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new Image;n.src=e,t.push(n)},isBrowser:function(){return"object"===i(window)},getCurrentDate:s,getCurrentTime:function(){return s().getTime()},consoleError:o,mergeObjects:function(e,t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))},logClientLogError:function(e,t,n){var i={};o("Something went wrong while calling "+n+" "+e);try{var r=e.indexOf(":"),s=e.substring(0,r),c=e.substring(r+1).replace(":","");Object.defineProperty(i,s,{value:c,enumerable:!0}),a.sendClientLog("/cl/2x2.json",i,t)}catch(u){o("Something went wrong while calling logClientLogError "+u)}}}},function(e,t,n){e.exports={sendClientLog:function(e,t,n){return"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon?(n({publisher:"Splunk and S3 Publisher",clientUrl:e,status:"successful",sentData:t}),navigator.sendBeacon(e,JSON.stringify(t))):function(e,t,n){var i=new XMLHttpRequest,r={method:"POST",headers:{"Content-type":"application/json"},body:t};return i.open(r.method,e,!0),i.setRequestHeader("Content-type","application/json"),n({publisher:"Splunk and S3 Publisher",clientUrl:e,status:"successfull",sentData:t}),i.send(JSON.stringify(r.body)),i}(e,t,n)}}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n18e5||0===e)&&(e=t,localStorage.setItem(n,e)),a=t,localStorage.setItem(r,a)}catch(o){e=t,console.log(o+" dcs:web-perf-logger")}return t-e},getLoggingData:function(e){var t="";if(e.data)for(var n=0,i=e.data.split("|");n0;n+=1)t+="&"+i[n];return t},getPageUsable:function(){if(window.performance&&window.performance.getEntriesByName){var e=window.performance.getEntriesByName("Page Usable","mark");return e&&e.length?Math.round(e[0].startTime):""}return""},getNavigationTimings:function(){return{unloadTime:r("unloadEventEnd")-r("unloadEventStart"),redirectTime:r("redirectEnd")-r("redirectStart"),dnsTime:r("domainLookupEnd")-r("domainLookupStart"),connectionTime:r("connectEnd")-r("connectStart"),requestTime:r("responseStart")-r("requestStart"),responseTime:r("responseEnd")-r("responseStart"),parsingTime:r("domInteractive")-r("domLoading"),domReadyCallbackTime:r("domContentLoadedEventEnd")-r("domContentLoadedEventStart"),onLdCallbackTime:r("loadEventEnd")-r("loadEventStart"),processingTime:r("domComplete")-r("domLoading"),navigationToResponse:r("responseStart")-r("navigationStart"),navigationToDomContentLoaded:r("domContentLoadedEventStart")-r("navigationStart"),navigationToOnLd:r("loadEventStart")-r("navigationStart"),fetchToResponse:r("responseStart")-r("fetchStart"),fetchToDomContentLoaded:r("domContentLoadedEventStart")-r("fetchStart"),fetchToOnLd:r("loadEventStart")-r("fetchStart"),responseToDomContentLoaded:r("domContentLoadedEventStart")-r("responseStart"),responseToOnLd:r("loadEventStart")-r("responseStart"),navigationToDomInteractive:r("domInteractive")-r("navigationStart")}},getPageName:function(e){return e.pageName||"unknown"},getGuid:function(e){return e.guid||"unknown"},getPageStartTime:function(e){var t=r("responseStart");isNaN(t)?e.pageStartTime=e.pageStartTime||i.getCurrentTime():e.pageStartTime=t}}},function(e,t,n){var i=/(?:(?:test|int|stress)\.expedia\.com|exp-(?:test|int)\.net|karmalab\.net|expedmz.com|staging.*\.(?:traveltainment\.de|myersmediagroup\.com)|localhost|docweb\.exp-tools\.net)$/i;e.exports={isProductionEnv:function(e){return!e.match(i)}}}])},function(e,t,n){(function(e){!function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t,n){var i=null==e?void 0:e[t];return void 0===i?n:i}function i(e,t){if(e===t)return 0;var n=e.toString().split("."),i=t.toString().split(".");return function(e){for(var t=/^\d+$/,n=0,i=e.length;nr)return 1;if(r>i)return-1}return 0}(n,i)):NaN}function r(e){this.name=this.constructor.name,this.message=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}function a(){function e(e,t){var n=ce(e);return n.length?n.every((function(e){return!!t[e]})):ue(t)}function t(){S(I),D(Y.COMPLETE),m(g.status,g.permissions),p.set(g.permissions,{optInCookieDomain:c,optInStorageExpiry:u}),h.execute(Ie)}function n(e){return function(n,i){if(!le(n))throw new Error("[OptIn] Invalid category(-ies). Please use the `OptIn.Categories` enum.");return D(Y.CHANGED),Object.assign(I,de(ce(n),e)),i||t(),g}}var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.doesOptInApply,a=i.previousPermissions,o=i.preOptInApprovals,s=i.isOptInStorageEnabled,c=i.optInCookieDomain,u=i.optInStorageExpiry,l=i.isIabContext,d=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cookies,f=ye(a);ke(f,"Invalid `previousPermissions`!"),ke(o,"Invalid `preOptInApprovals`!");var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isEnabled,n=e.cookieName,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cookies;return t&&n&&i?{remove:function(){i.remove(n)},get:function(){var e=i.get(n),t={};try{t=JSON.parse(e)}catch(e){t={}}return t},set:function(e,t){t=t||{},i.set(n,JSON.stringify(e),{domain:t.optInCookieDomain||"",cookieLifetime:t.optInStorageExpiry||3419e4,expires:!0})}}:{get:be,set:be,remove:be}}({isEnabled:!!s,cookieName:"adobeujs-optin"},{cookies:d}),g=this,m=Q(g),h=ne(),v=ge(f),b=ge(o),y=p.get(),k={},_=function(e,t){return me(e)||t&&me(t)?Y.COMPLETE:Y.PENDING}(v,y),C=function(e,t,n){var i=de(te,!r);return r?Object.assign({},i,e,t,n):i}(b,v,y),I=fe(C),D=function(e){return _=e},S=function(e){return C=e};g.deny=n(!1),g.approve=n(!0),g.denyAll=g.deny.bind(g,te),g.approveAll=g.approve.bind(g,te),g.isApproved=function(t){return e(t,g.permissions)},g.isPreApproved=function(t){return e(t,b)},g.fetchPermissions=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?g.on(Y.COMPLETE,e):be;return!r||r&&g.isComplete||o?e(g.permissions):t||h.add(Ie,(function(){return e(g.permissions)})),n},g.complete=function(){g.status===Y.CHANGED&&t()},g.registerPlugin=function(e){if(!e||!e.name||"function"!=typeof e.onRegister)throw new Error(De);k[e.name]||(k[e.name]=e,e.onRegister.call(e,g))},g.execute=Ce(k),Object.defineProperties(g,{permissions:{get:function(){return C}},status:{get:function(){return _}},Categories:{get:function(){return $}},doesOptInApply:{get:function(){return!!r}},isPending:{get:function(){return g.status===Y.PENDING}},isComplete:{get:function(){return g.status===Y.COMPLETE}},__plugins:{get:function(){return Object.keys(k)}},isIabContext:{get:function(){return l}}})}function o(e,t){if(void 0===t)return e;var n=setTimeout((function(){n=null,e.call(e,new r("The call took longer than you wanted!"))}),t);return function(){n&&(clearTimeout(n),e.apply(e,arguments))}}function s(){if(window.__cmp)return window.__cmp;var e=window;if(e!==window.top){for(var t;!t;){e=e.parent;try{e.frames.__cmpLocator&&(t=e)}catch(e){}if(e===window.top)break}if(t){var n={};return window.__cmp=function(e,i,r){var a=Math.random()+"",o={__cmpCall:{command:e,parameter:i,callId:a}};n[a]=r,t.postMessage(o,"*")},window.addEventListener("message",(function(e){var t=e.data;if("string"==typeof t)try{t=JSON.parse(e.data)}catch(e){}if(t.__cmpReturn){var i=t.__cmpReturn;n[i.callId]&&(n[i.callId](i.returnValue,i.success),delete n[i.callId])}}),!1),window.__cmp}oe.error("__cmp not found")}else oe.error("__cmp not found")}var c="undefined"!=typeof globalThis?globalThis:window;Object.assign=Object.assign||function(e){for(var t,n,i=1;i4;e--){var t=document.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]>=0;n--)if(t=i.slice(n).join("."),V.set("test","cookie",{domain:t}))return V.remove("test",{domain:t}),t;return""},F=function(e,t){return i(e,t)<0},B=function(e,t){return 0!==i(e,t)},H=!!c.postMessage,q=function(e,t,n){var i=1;t&&(H?n.postMessage(e,t.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):t&&(n.location=t.replace(/#.*$/,"")+"#"+ +new Date+i+++"&"+e))},G=function(e,t){var n;try{H&&(e&&(n=function(n){if("string"==typeof t&&n.origin!==t||"[object Function]"===Object.prototype.toString.call(t)&&!1===t(n.origin))return!1;e(n)}),c.addEventListener?c[e?"addEventListener":"removeEventListener"]("message",n):c[e?"attachEvent":"detachEvent"]("onmessage",n))}catch(e){}},W=function(e){var t,n,i="0123456789",r="",a="",o=8,s=10,c=10;if(1==e){for(i+="ABCDEF",t=0;16>t;t++)n=Math.floor(Math.random()*o),r+=i.substring(n,n+1),n=Math.floor(Math.random()*o),a+=i.substring(n,n+1),o=16;return r+"-"+a}for(t=0;19>t;t++)n=Math.floor(Math.random()*s),r+=i.substring(n,n+1),0===t&&9==n?s=3:((1==t||2==t)&&10!=s&&2>n||2n||20&&(t=!1)),{corsType:e,corsCookiesEnabled:t}}(),getCORSInstance:function(){return"none"===this.corsMetadata.corsType?null:new c[this.corsMetadata.corsType]},fireCORS:function(t,n,i){var r=this;n&&(t.loadErrorHandler=n);try{var a=this.getCORSInstance();a.open("get",t.corsUrl+"&ts="+(new Date).getTime(),!0),"XMLHttpRequest"===this.corsMetadata.corsType&&(a.withCredentials=!0,a.timeout=e.loadTimeout,a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onreadystatechange=function(){4===this.readyState&&200===this.status&&function(e){var n;try{if((n=JSON.parse(e))!==Object(n))return void r.handleCORSError(t,null,"Response is not JSON")}catch(e){return void r.handleCORSError(t,e,"Error parsing response as JSON")}try{for(var i=t.callback,a=c,o=0;o0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};this.log=re("log",e,t),this.warn=re("warn",e,t),this.error=re("error",e,t)},oe=new ae("[ADOBE OPT-IN]"),se=function(t,n){return e(t)===n},ce=function(e,t){return e instanceof Array?e:se(e,"string")?[e]:t||[]},ue=function(e){var t=Object.keys(e);return!!t.length&&t.every((function(t){return!0===e[t]}))},le=function(e){return!(!e||pe(e))&&ce(e).every((function(e){return te.indexOf(e)>-1}))},de=function(e,t){return e.reduce((function(e,n){return e[n]=t,e}),{})},fe=function(e){return JSON.parse(JSON.stringify(e))},pe=function(e){return"[object Array]"===Object.prototype.toString.call(e)&&!e.length},ge=function(e){if(ve(e))return e;try{return JSON.parse(e)}catch(e){return{}}},me=function(e){return void 0===e||(ve(e)?le(Object.keys(e)):he(e))},he=function(e){try{var t=JSON.parse(e);return!!e&&se(e,"string")&&le(Object.keys(t))}catch(e){return!1}},ve=function(e){return null!==e&&se(e,"object")&&!1===Array.isArray(e)},be=function(){},ye=function(e){return se(e,"function")?e():e},ke=function(e,t){me(e)||oe.error("".concat(t))},_e=function(e){return function(e){return Object.keys(e).map((function(t){return e[t]}))}(e).filter((function(e,t,n){return n.indexOf(e)===t}))},Ce=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.command,i=t.params,r=void 0===i?{}:i,a=t.callback,o=void 0===a?be:a;if(!n||-1===n.indexOf("."))throw new Error("[OptIn.execute] Please provide a valid command.");try{var s=n.split("."),c=e[s[0]],u=s[1];if(!c||"function"!=typeof c[u])throw new Error("Make sure the plugin and API name exist.");var l=Object.assign(r,{callback:o});c[u].call(c,l)}catch(e){oe.error("[execute] Something went wrong: "+e.message)}}};r.prototype=Object.create(Error.prototype),r.prototype.constructor=r;var Ie="fetchPermissions",De="[OptIn#registerPlugin] Plugin is invalid.";a.Categories=$,a.TimeoutError=r;var Se=Object.freeze({OptIn:a,IabPlugin:function(){var e=this;e.name="iabPlugin",e.version="0.0.1";var t=ne(),n={allConsentData:null},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n[e]=t};e.fetchConsentData=function(e){var t=o(e.callback,e.timeout);r({callback:t})},e.isApproved=function(e){var t=e.callback,i=e.category,a=e.timeout;if(n.allConsentData)return t(null,u(i,n.allConsentData.vendorConsents,n.allConsentData.purposeConsents));var s=o((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.vendorConsents,a=n.purposeConsents;t(e,u(i,r,a))}),a);r({category:i,callback:s})},e.onRegister=function(t){var n=Object.keys(Z);e.fetchConsentData({callback:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.purposeConsents,a=i.gdprApplies,o=i.vendorConsents;!e&&a&&o&&r&&(n.forEach((function(e){var n=u(e,o,r);t[n?"approve":"deny"](e,!0)})),t.complete())}})};var r=function(e){var r=e.callback;if(n.allConsentData)return r(null,n.allConsentData);t.add("FETCH_CONSENT_DATA",r);var o={};c((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.purposeConsents,s=e.gdprApplies,c=e.vendorConsents;(arguments.length>1?arguments[1]:void 0)&&i("allConsentData",o={purposeConsents:r,gdprApplies:s,vendorConsents:c}),a((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(arguments.length>1?arguments[1]:void 0)&&(o.consentString=e.consentData,i("allConsentData",o)),t.execute("FETCH_CONSENT_DATA",[null,n.allConsentData])}))}))},a=function(e){var t=s();t&&t("getConsentData",null,e)},c=function(e){var t=_e(Z),n=s();n&&n("getVendorConsents",t,e)},u=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return!!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})[Z[e]]&&ee[e].every((function(e){return t[e]}))}}}),we=function e(t){function n(e,t){return e>>>t|e<<32-t}for(var i,r,a=Math.pow,o=a(2,32),s="",c=[],u=8*t.length,l=e.h=e.h||[],d=e.k=e.k||[],f=d.length,p={},g=2;f<64;g++)if(!p[g]){for(i=0;i<313;i+=g)p[i]=g;l[f]=a(g,.5)*o|0,d[f++]=a(g,1/3)*o|0}for(t+="€";t.length%64-56;)t+="\0";for(i=0;i>8)return;c[i>>2]|=r<<(3-i)%4*8}for(c[c.length]=u/o|0,c[c.length]=u,r=0;r>>3)+m[i-7]+(n(b,17)^n(b,19)^b>>>10)|0);(l=[_+((n(y,2)^n(y,13)^n(y,22))+(y&l[1]^y&l[2]^l[1]&l[2]))|0].concat(l))[4]=l[4]+_|0}for(i=0;i<8;i++)l[i]=l[i]+h[i]|0}for(i=0;i<8;i++)for(r=3;r+1;r--){var C=l[i]>>8*r&255;s+=(C<16?0:"")+C.toString(16)}return s},Te=function(e,t){return"SHA-256"!==t&&"SHA256"!==t&&"sha256"!==t&&"sha-256"!==t||(e=we(e)),e},Ee=function(e){return String(e).trim().toLowerCase()},Oe=Se.OptIn;w.defineGlobalNamespace(),window.adobe.OptInCategories=Oe.Categories;var Ae=function(t,n,i){function r(e){var t=e;return function(e){var n=e||k.location.href;try{var i=f._extractParamFromUri(n,t);if(i)return R.parsePipeDelimetedKeyValues(i)}catch(e){}}}function a(e){e=e||{},f._supplementalDataIDCurrent=e.supplementalDataIDCurrent||"",f._supplementalDataIDCurrentConsumed=e.supplementalDataIDCurrentConsumed||{},f._supplementalDataIDLast=e.supplementalDataIDLast||"",f._supplementalDataIDLastConsumed=e.supplementalDataIDLastConsumed||{}}function o(e){var t=e.reduce((function(e,t){var n=t[0],i=t[1];return null!=i&&i!==P&&(e=function(e,t,n){return(n=n?n+="|":n)+(e+"=")+encodeURIComponent(t)}(n,i,e)),e}),"");return function(e){return(e=e?e+="|":e)+"TS="+R.getTimestampInSeconds()}(t)}function s(){return f.configs.isIabContext?p.optIn.isApproved(p.optIn.Categories.ECID)&&b:p.optIn.isApproved(p.optIn.Categories.ECID)}function u(e,t){if(b=!0,e)throw new Error("[IAB plugin] : "+e);t.gdprApplies&&(g=t.consentString),f.init(),d()}function l(){p.optIn.isApproved(p.optIn.Categories.ECID)&&(f.configs.isIabContext?p.optIn.execute({command:"iabPlugin.fetchConsentData",callback:u}):(f.init(),d()))}function d(){p.optIn.off("complete",l)}if(!i||i.split("").reverse().join("")!==t)throw new Error("Please use `Visitor.getInstance` to instantiate Visitor.");var f=this,p=window.adobe,g="",b=!1,y=!1;f.version="4.4.0";var k=c,_=k.Visitor;_.version=f.version,_.AuthState=h,_.OptOut=v,k.s_c_in||(k.s_c_il=[],k.s_c_in=0),f._c="Visitor",f._il=k.s_c_il,f._in=k.s_c_in,f._il[f._in]=f,k.s_c_in++,f._instanceType="regular",f._log={requests:[]},f.marketingCloudOrgID=t,f.cookieName="AMCV_"+t,f.sessionCookieName="AMCVS_"+t,f.cookieDomain=U(),f.loadSSL=k.location.protocol.toLowerCase().indexOf("https")>=0,f.loadTimeout=3e4,f.CORSErrors=[],f.marketingCloudServer=f.audienceManagerServer="dpm.demdex.net",f.sdidParamExpiry=30;var C=null,I="MCMID",D="MCIDTS",S="A",T="MCAID",E="AAM",O="MCAAMB",P="NONE",M=function(e){return!Object.prototype[e]},x=J(f);f.FIELDS=m,f.cookieRead=function(e){return V.get(e)},f.cookieWrite=function(e,t,n){var i=f.cookieLifetime?(""+f.cookieLifetime).toUpperCase():"",r=!1;return f.configs&&f.configs.secureCookie&&"https:"===location.protocol&&(r=!0),V.set(e,""+t,{expires:n,domain:f.cookieDomain,cookieLifetime:i,secure:r})},f.resetState=function(e){e?f._mergeServerState(e):a()},f._isAllowedDone=!1,f._isAllowedFlag=!1,f.isAllowed=function(){return f._isAllowedDone||(f._isAllowedDone=!0,(f.cookieRead(f.cookieName)||f.cookieWrite(f.cookieName,"T",1))&&(f._isAllowedFlag=!0)),"T"===f.cookieRead(f.cookieName)&&f._helpers.removeCookie(f.cookieName),f._isAllowedFlag},f.setMarketingCloudVisitorID=function(e){f._setMarketingCloudFields(e)},f._use1stPartyMarketingCloudServer=!1,f.getMarketingCloudVisitorID=function(e,t){f.marketingCloudServer&&f.marketingCloudServer.indexOf(".demdex.net")<0&&(f._use1stPartyMarketingCloudServer=!0);var n=f._getAudienceManagerURLData("_setMarketingCloudFields"),i=n.url;return f._getRemoteField(I,i,e,t,n)},f.getVisitorValues=function(e,t){var n={MCMID:{fn:f.getMarketingCloudVisitorID,args:[!0],context:f},MCOPTOUT:{fn:f.isOptedOut,args:[void 0,!0],context:f},MCAID:{fn:f.getAnalyticsVisitorID,args:[!0],context:f},MCAAMLH:{fn:f.getAudienceManagerLocationHint,args:[!0],context:f},MCAAMB:{fn:f.getAudienceManagerBlob,args:[!0],context:f}};!function(e,t){function n(e){return function(n){i[e]=n,++r===a&&t(i)}}var i={},r=0,a=Object.keys(e).length;Object.keys(e).forEach((function(t){var i=e[t];if(i.fn){var r=i.args||[];r.unshift(n(t)),i.fn.apply(i.context||null,r)}}))}(t&&t.length?w.pluck(n,t):n,e)},f._currentCustomerIDs={},f._customerIDsHashChanged=!1,f._newCustomerIDsHash="",f.setCustomerIDs=function(t,n){if(!f.isOptedOut()&&t){if(!w.isObject(t)||w.isObjectEmpty(t))return!1;var i,r,a;for(i in f._readVisitor(),t)if(M(i)&&(n=(r=t[i]).hasOwnProperty("hashType")?r.hashType:n,r))if("object"===e(r)){var o={};if(r.id){if(n){if(!(a=Te(Ee(r.id),n)))return;r.id=a,o.hashType=n}o.id=r.id}null!=r.authState&&(o.authState=r.authState),f._currentCustomerIDs[i]=o}else if(n){if(!(a=Te(Ee(r),n)))return;f._currentCustomerIDs[i]={id:a,hashType:n}}else f._currentCustomerIDs[i]={id:r};var s=f.getCustomerIDs(),c=f._getField("MCCIDH"),u="";for(i in c||(c=0),s)M(i)&&(u+=(u?"|":"")+i+"|"+((r=s[i]).id?r.id:"")+(r.authState?r.authState:""));f._newCustomerIDsHash=String(f._hash(u)),f._newCustomerIDsHash!==c&&(f._customerIDsHashChanged=!0,f._mapCustomerIDs((function(){f._customerIDsHashChanged=!1})))}},f.getCustomerIDs=function(){f._readVisitor();var e,t,n={};for(e in f._currentCustomerIDs)M(e)&&(t=f._currentCustomerIDs[e],n[e]||(n[e]={}),t.id&&(n[e].id=t.id),null!=t.authState?n[e].authState=t.authState:n[e].authState=_.AuthState.UNKNOWN,t.hashType&&(n[e].hashType=t.hashType));return n},f.setAnalyticsVisitorID=function(e){f._setAnalyticsFields(e)},f.getAnalyticsVisitorID=function(e,t,n){if(!R.isTrackingServerPopulated()&&!n)return f._callCallback(e,[""]),"";var i="";if(n||(i=f.getMarketingCloudVisitorID((function(t){f.getAnalyticsVisitorID(e,!0)}))),i||n){var r=n?f.marketingCloudServer:f.trackingServer,a="";f.loadSSL&&(n?f.marketingCloudServerSecure&&(r=f.marketingCloudServerSecure):f.trackingServerSecure&&(r=f.trackingServerSecure));var o={};if(r){var s="http"+(f.loadSSL?"s":"")+"://"+r+"/id",c="d_visid_ver="+f.version+"&mcorgid="+encodeURIComponent(f.marketingCloudOrgID)+(i?"&mid="+encodeURIComponent(i):"")+(f.idSyncDisable3rdPartySyncing||f.disableThirdPartyCookies?"&d_coppa=true":""),u=["s_c_il",f._in,"_set"+(n?"MarketingCloud":"Analytics")+"Fields"];a=s+"?"+c+"&callback=s_c_il%5B"+f._in+"%5D._set"+(n?"MarketingCloud":"Analytics")+"Fields",o.corsUrl=s+"?"+c,o.callback=u}return o.url=a,f._getRemoteField(n?I:T,a,e,t,o)}return""},f.getAudienceManagerLocationHint=function(e,t){if(f.getMarketingCloudVisitorID((function(t){f.getAudienceManagerLocationHint(e,!0)}))){var n=f._getField(T);if(!n&&R.isTrackingServerPopulated()&&(n=f.getAnalyticsVisitorID((function(t){f.getAudienceManagerLocationHint(e,!0)}))),n||!R.isTrackingServerPopulated()){var i=f._getAudienceManagerURLData(),r=i.url;return f._getRemoteField("MCAAMLH",r,e,t,i)}}return""},f.getLocationHint=f.getAudienceManagerLocationHint,f.getAudienceManagerBlob=function(e,t){if(f.getMarketingCloudVisitorID((function(t){f.getAudienceManagerBlob(e,!0)}))){var n=f._getField(T);if(!n&&R.isTrackingServerPopulated()&&(n=f.getAnalyticsVisitorID((function(t){f.getAudienceManagerBlob(e,!0)}))),n||!R.isTrackingServerPopulated()){var i=f._getAudienceManagerURLData(),r=i.url;return f._customerIDsHashChanged&&f._setFieldExpire(O,-1),f._getRemoteField(O,r,e,t,i)}}return""},f._supplementalDataIDCurrent="",f._supplementalDataIDCurrentConsumed={},f._supplementalDataIDLast="",f._supplementalDataIDLastConsumed={},f.getSupplementalDataID=function(e,t){f._supplementalDataIDCurrent||t||(f._supplementalDataIDCurrent=f._generateID(1));var n=f._supplementalDataIDCurrent;return f._supplementalDataIDLast&&!f._supplementalDataIDLastConsumed[e]?(n=f._supplementalDataIDLast,f._supplementalDataIDLastConsumed[e]=!0):n&&(f._supplementalDataIDCurrentConsumed[e]&&(f._supplementalDataIDLast=f._supplementalDataIDCurrent,f._supplementalDataIDLastConsumed=f._supplementalDataIDCurrentConsumed,f._supplementalDataIDCurrent=n=t?"":f._generateID(1),f._supplementalDataIDCurrentConsumed={}),n&&(f._supplementalDataIDCurrentConsumed[e]=!0)),n};var L=!1;f._liberatedOptOut=null,f.getOptOut=function(e,t){var n=f._getAudienceManagerURLData("_setMarketingCloudFields"),i=n.url;if(s())return f._getRemoteField("MCOPTOUT",i,e,t,n);if(f._registerCallback("liberatedOptOut",e),null!==f._liberatedOptOut)return f._callAllCallbacks("liberatedOptOut",[f._liberatedOptOut]),L=!1,f._liberatedOptOut;if(L)return null;L=!0;var r="liberatedGetOptOut";return n.corsUrl=n.corsUrl.replace(/dpm\.demdex\.net\/id\?/,"dpm.demdex.net/optOutStatus?"),n.callback=[r],c[r]=function(e){if(e===Object(e)){var t,n,i=w.parseOptOut(e,t,P);t=i.optOut,n=1e3*i.d_ottl,f._liberatedOptOut=t,setTimeout((function(){f._liberatedOptOut=null}),n)}f._callAllCallbacks("liberatedOptOut",[t]),L=!1},x.fireCORS(n),null},f.isOptedOut=function(e,t,n){t||(t=_.OptOut.GLOBAL);var i=f.getOptOut((function(n){var i=n===_.OptOut.GLOBAL||n.indexOf(t)>=0;f._callCallback(e,[i])}),n);return i?i===_.OptOut.GLOBAL||i.indexOf(t)>=0:null},f._fields=null,f._fieldsExpired=null,f._hash=function(e){var t,n=0;if(e)for(t=0;t0;)f._callCallback(n.shift(),t)}},f._addQuerystringParam=function(e,t,n,i){var r=encodeURIComponent(t)+"="+encodeURIComponent(n),a=R.parseHash(e),o=R.hashlessUrl(e);if(-1===o.indexOf("?"))return o+"?"+r+a;var s=o.split("?"),c=s[0]+"?",u=s[1];return c+R.addQueryParamAtLocation(u,r,i)+a},f._extractParamFromUri=function(e,t){var n=new RegExp("[\\?&#]"+t+"=([^&#]*)").exec(e);if(n&&n.length)return decodeURIComponent(n[1])},f._parseAdobeMcFromUrl=r(K.ADOBE_MC),f._parseAdobeMcSdidFromUrl=r(K.ADOBE_MC_SDID),f._attemptToPopulateSdidFromUrl=function(e){var n=f._parseAdobeMcSdidFromUrl(e),i=1e9;n&&n.TS&&(i=R.getTimestampInSeconds()-n.TS),n&&n.SDID&&n.MCORGID===t&&iK.ADOBE_MC_TTL_IN_MIN||e.MCORGID!==t)return;!function(e){function t(e,t,n){e&&e.match(K.VALID_VISITOR_ID_REGEX)&&(n===I&&(y=!0),t(e))}t(e[I],f.setMarketingCloudVisitorID,I),f._setFieldExpire(O,-1),t(e[T],f.setAnalyticsVisitorID)}(e)}},f._mergeServerState=function(e){if(e)try{if((e=function(e){return R.isObject(e)?e:JSON.parse(e)}(e))[f.marketingCloudOrgID]){var t=e[f.marketingCloudOrgID];!function(e){R.isObject(e)&&f.setCustomerIDs(e)}(t.customerIDs),a(t.sdid)}}catch(e){throw new Error("`serverState` has an invalid format.")}},f._timeout=null,f._loadData=function(e,t,n,i){t=f._addQuerystringParam(t,"d_fieldgroup",e,1),i.url=f._addQuerystringParam(i.url,"d_fieldgroup",e,1),i.corsUrl=f._addQuerystringParam(i.corsUrl,"d_fieldgroup",e,1),H.fieldGroupObj[e]=!0,i===Object(i)&&i.corsUrl&&"XMLHttpRequest"===x.corsMetadata.corsType&&x.fireCORS(i,n,e)},f._clearTimeout=function(e){null!=f._timeout&&f._timeout[e]&&(clearTimeout(f._timeout[e]),f._timeout[e]=0)},f._settingsDigest=0,f._getSettingsDigest=function(){if(!f._settingsDigest){var e=f.version;f.audienceManagerServer&&(e+="|"+f.audienceManagerServer),f.audienceManagerServerSecure&&(e+="|"+f.audienceManagerServerSecure),f._settingsDigest=f._hash(e)}return f._settingsDigest},f._readVisitorDone=!1,f._readVisitor=function(){if(!f._readVisitorDone){f._readVisitorDone=!0;var e,t,n,i,r,a,o=f._getSettingsDigest(),s=!1,c=f.cookieRead(f.cookieName),u=new Date;if(c||y||f.discardTrackingServerECID||(c=f.cookieRead(K.FIRST_PARTY_SERVER_COOKIE)),null==f._fields&&(f._fields={}),c&&"T"!==c)for((c=c.split("|"))[0].match(/^[\-0-9]+$/)&&(parseInt(c[0],10)!==o&&(s=!0),c.shift()),c.length%2==1&&c.pop(),e=0;e1?(r=parseInt(t[1],10),a=t[1].indexOf("s")>0):(r=0,a=!1),s&&("MCCIDH"===n&&(i=""),r>0&&(r=u.getTime()/1e3-60)),n&&i&&(f._setField(n,i,1),r>0&&(f._fields["expire"+n]=r+(a?"s":""),(u.getTime()>=1e3*r||a&&!f.cookieRead(f.sessionCookieName))&&(f._fieldsExpired||(f._fieldsExpired={}),f._fieldsExpired[n]=!0)));!f._getField(T)&&R.isTrackingServerPopulated()&&(c=f.cookieRead("s_vi"))&&((c=c.split("|")).length>1&&c[0].indexOf("v1")>=0&&((e=(i=c[1]).indexOf("["))>=0&&(i=i.substring(0,e)),i&&i.match(K.VALID_VISITOR_ID_REGEX)&&f._setField(T,i)))}},f._appendVersionTo=function(e){var t="vVersion|"+f.version,n=e?f._getCookieVersion(e):null;return n?B(n,f.version)&&(e=e.replace(K.VERSION_REGEX,t)):e+=(e?"|":"")+t,e},f._writeVisitor=function(){var e,t,n=f._getSettingsDigest();for(e in f._fields)M(e)&&f._fields[e]&&"expire"!==e.substring(0,6)&&(t=f._fields[e],n+=(n?"|":"")+e+(f._fields["expire"+e]?"-"+f._fields["expire"+e]:"")+"|"+t);n=f._appendVersionTo(n),f.cookieWrite(f.cookieName,n,1)},f._getField=function(e,t){return null==f._fields||!t&&f._fieldsExpired&&f._fieldsExpired[e]?null:f._fields[e]},f._setField=function(e,t,n){null==f._fields&&(f._fields={}),f._fields[e]=t,n||f._writeVisitor()},f._getFieldList=function(e,t){var n=f._getField(e,t);return n?n.split("*"):null},f._setFieldList=function(e,t,n){f._setField(e,t?t.join("*"):"",n)},f._getFieldMap=function(e,t){var n=f._getFieldList(e,t);if(n){var i,r={};for(i=0;i0?e.substr(t):""},hashlessUrl:function(e){var t=e.indexOf("#");return t>0?e.substr(0,t):e},addQueryParamAtLocation:function(e,t,n){var i=e.split("&");return n=null!=n?n:i.length,i.splice(n,0,t),i.join("&")},isFirstPartyAnalyticsVisitorIDCall:function(e,t,n){return e===T&&(t||(t=f.trackingServer),n||(n=f.trackingServerSecure),!("string"!=typeof(i=f.loadSSL?n:t)||!i.length)&&i.indexOf("2o7.net")<0&&i.indexOf("omtrdc.net")<0);var i},isObject:function(e){return Boolean(e&&e===Object(e))},removeCookie:function(e){V.remove(e,{domain:f.cookieDomain})},isTrackingServerPopulated:function(){return!!f.trackingServer||!!f.trackingServerSecure},getTimestampInSeconds:function(){return Math.round((new Date).getTime()/1e3)},parsePipeDelimetedKeyValues:function(e){return e.split("|").reduce((function(e,t){var n=t.split("=");return e[n[0]]=decodeURIComponent(n[1]),e}),{})},generateRandomString:function(e){e=e||5;for(var t="",n="abcdefghijklmnopqrstuvwxyz0123456789";e--;)t+=n[Math.floor(36*Math.random())];return t},normalizeBoolean:function(e){return"true"===e||"false"!==e&&e},parseBoolean:function(e){return"true"===e||"false"!==e&&null},replaceMethodsWithFunction:function(e,t){for(var n in e)e.hasOwnProperty(n)&&"function"==typeof e[n]&&(e[n]=t);return e}};f._helpers=R;var N=function(e,t){var n=c.document;return{THROTTLE_START:3e4,MAX_SYNCS_LENGTH:649,throttleTimerSet:!1,id:null,onPagePixels:[],iframeHost:null,getIframeHost:function(e){if("string"==typeof e){var t=e.split("/");return t[0]+"//"+t[2]}},subdomain:null,url:null,getUrl:function(){var t,i="http://fast.",r="?d_nsid="+e.idSyncContainerID+"#"+encodeURIComponent(n.location.origin);return this.subdomain||(this.subdomain="nosubdomainreturned"),e.loadSSL&&(i=e.idSyncSSLUseAkamai?"https://fast.":"https://"),t=i+this.subdomain+".demdex.net/dest5.html"+r,this.iframeHost=this.getIframeHost(t),this.id="destination_publishing_iframe_"+this.subdomain+"_"+e.idSyncContainerID,t},checkDPIframeSrc:function(){var t="?d_nsid="+e.idSyncContainerID+"#"+encodeURIComponent(n.location.href);"string"==typeof e.dpIframeSrc&&e.dpIframeSrc.length&&(this.id="destination_publishing_iframe_"+(e._subdomain||this.subdomain||(new Date).getTime())+"_"+e.idSyncContainerID,this.iframeHost=this.getIframeHost(e.dpIframeSrc),this.url=e.dpIframeSrc+t)},idCallNotProcesssed:null,doAttachIframe:!1,startedAttachingIframe:!1,iframeHasLoaded:null,iframeIdChanged:null,newIframeCreated:null,originalIframeHasLoadedAlready:null,iframeLoadedCallbacks:[],regionChanged:!1,timesRegionChanged:0,sendingMessages:!1,messages:[],messagesPosted:[],messagesReceived:[],messageSendingInterval:K.POST_MESSAGE_ENABLED?null:100,onPageDestinationsFired:[],jsonForComparison:[],jsonDuplicates:[],jsonWaiting:[],jsonProcessed:[],canSetThirdPartyCookies:!0,receivedThirdPartyCookiesNotification:!1,readyToAttachIframePreliminary:function(){return!(e.idSyncDisableSyncs||e.disableIdSyncs||e.idSyncDisable3rdPartySyncing||e.disableThirdPartyCookies||e.disableThirdPartyCalls)},readyToAttachIframe:function(){return this.readyToAttachIframePreliminary()&&(this.doAttachIframe||e._doAttachIframe)&&(this.subdomain&&"nosubdomainreturned"!==this.subdomain||e._subdomain)&&this.url&&!this.startedAttachingIframe},attachIframe:function(){function e(){(r=n.createElement("iframe")).sandbox="allow-scripts allow-same-origin",r.title="Adobe ID Syncing iFrame",r.id=i.id,r.name=i.id+"_name",r.style.cssText="display: none; width: 0; height: 0;",r.src=i.url,i.newIframeCreated=!0,t(),n.body.appendChild(r)}function t(e){r.addEventListener("load",(function(){r.className="aamIframeLoaded",i.iframeHasLoaded=!0,i.fireIframeLoadedCallbacks(e),i.requestToProcess()}))}this.startedAttachingIframe=!0;var i=this,r=n.getElementById(this.id);r?"IFRAME"!==r.nodeName?(this.id+="_2",this.iframeIdChanged=!0,e()):(this.newIframeCreated=!1,"aamIframeLoaded"!==r.className?(this.originalIframeHasLoadedAlready=!1,t("The destination publishing iframe already exists from a different library, but hadn't loaded yet.")):(this.originalIframeHasLoadedAlready=!0,this.iframeHasLoaded=!0,this.iframe=r,this.fireIframeLoadedCallbacks("The destination publishing iframe already exists from a different library, and had loaded alresady."),this.requestToProcess())):e(),this.iframe=r},fireIframeLoadedCallbacks:function(e){this.iframeLoadedCallbacks.forEach((function(t){"function"==typeof t&&t({message:e||"The destination publishing iframe was attached and loaded successfully."})})),this.iframeLoadedCallbacks=[]},requestToProcess:function(t){function n(){r.jsonForComparison.push(t),r.jsonWaiting.push(t),r.processSyncOnPage(t)}var i,r=this;if(t===Object(t)&&t.ibs)if(i=JSON.stringify(t.ibs||[]),this.jsonForComparison.length){var a,o,s,c=!1;for(a=0,o=this.jsonForComparison.length;a=a&&(e.splice(r,1),r--);return{dataPresent:o,dataValid:s}},manageSyncsSize:function(e){if(e.join("*").length>this.MAX_SYNCS_LENGTH)for(e.sort((function(e,t){return parseInt(e.split("-")[1],10)-parseInt(t.split("-")[1],10)}));e.join("*").length>this.MAX_SYNCS_LENGTH;)e.shift()},fireSync:function(t,n,i,r,a,o){var s=this;if(t){if("img"===n.tag){var c,u,l,d,f=n.url,p=e.loadSSL?"https:":"http:";for(c=0,u=f.length;cK.DAYS_BETWEEN_SYNC_ID_CALLS},attachIframeASAP:function(){var e=this;!function t(){e.startedAttachingIframe||(n.body?e.attachIframe():setTimeout(t,30))}()}}}(f,_);f._destinationPublishing=N,f.timeoutMetricsLog=[];var H={isClientSideMarketingCloudVisitorID:null,MCIDCallTimedOut:null,AnalyticsIDCallTimedOut:null,AAMIDCallTimedOut:null,fieldGroupObj:{},setState:function(e,t){switch(e){case"MC":!1===t?!0!==this.MCIDCallTimedOut&&(this.MCIDCallTimedOut=!1):this.MCIDCallTimedOut=t;break;case S:!1===t?!0!==this.AnalyticsIDCallTimedOut&&(this.AnalyticsIDCallTimedOut=!1):this.AnalyticsIDCallTimedOut=t;break;case E:!1===t?!0!==this.AAMIDCallTimedOut&&(this.AAMIDCallTimedOut=!1):this.AAMIDCallTimedOut=t}}};f.isClientSideMarketingCloudVisitorID=function(){return H.isClientSideMarketingCloudVisitorID},f.MCIDCallTimedOut=function(){return H.MCIDCallTimedOut},f.AnalyticsIDCallTimedOut=function(){return H.AnalyticsIDCallTimedOut},f.AAMIDCallTimedOut=function(){return H.AAMIDCallTimedOut},f.idSyncGetOnPageSyncInfo=function(){return f._readVisitor(),f._getField("MCSYNCSOP")},f.idSyncByURL=function(e){if(!f.isOptedOut()){var t=function(e){var t=e.minutesToLive,n="";return(f.idSyncDisableSyncs||f.disableIdSyncs)&&(n=n||"Error: id syncs have been disabled"),"string"==typeof e.dpid&&e.dpid.length||(n=n||"Error: config.dpid is empty"),"string"==typeof e.url&&e.url.length||(n=n||"Error: config.url is empty"),void 0===t?t=20160:(t=parseInt(t,10),(isNaN(t)||t<=0)&&(n=n||"Error: config.minutesToLive needs to be a positive number")),{error:n,ttl:t}}(e||{});if(t.error)return t.error;var n,i,r=e.url,a=encodeURIComponent,o=N;return r=r.replace(/^https:/,"").replace(/^http:/,""),n=w.encodeAndBuildRequest(["",e.dpid,e.dpuuid||""],","),i=["ibs",a(e.dpid),"img",a(r),t.ttl,"",n],o.addMessage(i.join("|")),o.requestToProcess(),"Successfully queued"}},f.idSyncByDataSource=function(e){if(!f.isOptedOut())return e===Object(e)&&"string"==typeof e.dpuuid&&e.dpuuid.length?(e.url="//dpm.demdex.net/ibs:dpid="+e.dpid+"&dpuuid="+e.dpuuid,f.idSyncByURL(e)):"Error: config or config.dpuuid is empty"},function(e,t){e.publishDestinations=function(n){var i=arguments[1],r=arguments[2];try{r="function"==typeof r?r:n.callback}catch(e){r=function(){}}var a=t;if(a.readyToAttachIframePreliminary()){if("string"==typeof n){if(!n.length)return void r({error:"subdomain is not a populated string."});if(!(i instanceof Array&&i.length))return void r({error:"messages is not a populated array."});var o=!1;if(i.forEach((function(e){"string"==typeof e&&e.length&&(a.addMessage(e),o=!0)})),!o)return void r({error:"None of the messages are populated strings."})}else{if(!w.isObject(n))return void r({error:"Invalid parameters passed."});var s=n;if("string"!=typeof(n=s.subdomain)||!n.length)return void r({error:"config.subdomain is not a populated string."});var c=s.urlDestinations;if(!(c instanceof Array&&c.length))return void r({error:"config.urlDestinations is not a populated array."});var u=[];c.forEach((function(e){w.isObject(e)&&(e.hideReferrer?e.message&&a.addMessage(e.message):u.push(e))})),function e(){u.length&&setTimeout((function(){var t=new Image,n=u.shift();t.src=n.url,a.onPageDestinationsFired.push(n),e()}),100)}()}a.iframe?(r({message:"The destination publishing iframe is already attached and loaded."}),a.requestToProcess()):!e.subdomain&&e._getField("MCMID")?(a.subdomain=n,a.doAttachIframe=!0,a.url=a.getUrl(),a.readyToAttachIframe()?(a.iframeLoadedCallbacks.push((function(e){r({message:"Attempted to attach and load the destination publishing iframe through this API call. Result: "+(e.message||"no result")})})),a.attachIframe()):r({error:"Encountered a problem in attempting to attach and load the destination publishing iframe through this API call."})):a.iframeLoadedCallbacks.push((function(e){r({message:"Attempted to attach and load the destination publishing iframe through normal Visitor API processing. Result: "+(e.message||"no result")})}))}else r({error:"The destination publishing iframe is disabled in the Visitor library."})}}(f,N),f._getCookieVersion=function(e){e=e||f.cookieRead(f.cookieName);var t=K.VERSION_REGEX.exec(e);return t&&t.length>1?t[1]:null},f._resetAmcvCookie=function(e){var t=f._getCookieVersion();t&&!F(t,e)||R.removeCookie(f.cookieName)},f.setAsCoopSafe=function(){C=!0},f.setAsCoopUnsafe=function(){C=!1},function(){if(f.configs=Object.create(null),R.isObject(n))for(var e in n)M(e)&&(f[e]=n[e],f.configs[e]=n[e])}(),[["getMarketingCloudVisitorID"],["setCustomerIDs",void 0],["getAnalyticsVisitorID"],["getAudienceManagerLocationHint"],["getLocationHint"],["getAudienceManagerBlob"]].forEach((function(e){var t=e[0],n=2===e.length?e[1]:"",i=f[t];f[t]=function(e){return s()&&f.isAllowed()?i.apply(f,arguments):("function"==typeof e&&f._callCallback(e,[n]),n)}})),f.init=function(){if(!(!f.configs.doesOptInApply||p.optIn.isComplete&&s()))return p.optIn.fetchPermissions(l,!0);!function(){if(R.isObject(n)){f.idSyncContainerID=f.idSyncContainerID||0,C="boolean"==typeof f.isCoopSafe?f.isCoopSafe:R.parseBoolean(f.isCoopSafe),f.resetBeforeVersion&&f._resetAmcvCookie(f.resetBeforeVersion),f._attemptToPopulateIdsFromUrl(),f._attemptToPopulateSdidFromUrl(),f._readVisitor();var e=f._getField(D),t=Math.ceil((new Date).getTime()/K.MILLIS_PER_DAY);f.idSyncDisableSyncs||f.disableIdSyncs||!N.canMakeSyncIDCall(e,t)||(f._setFieldExpire(O,-1),f._setField(D,t)),f.getMarketingCloudVisitorID(),f.getAudienceManagerLocationHint(),f.getAudienceManagerBlob(),f._mergeServerState(f.serverState)}else f._attemptToPopulateIdsFromUrl(),f._attemptToPopulateSdidFromUrl()}(),function(){if(!f.idSyncDisableSyncs&&!f.disableIdSyncs){N.checkDPIframeSrc();k.addEventListener("load",(function(){_.windowLoaded=!0,function(){var e=N;e.readyToAttachIframe()&&e.attachIframe()}()}));try{G((function(e){N.receiveMessage(e.data)}),N.iframeHost)}catch(e){}}}(),f.whitelistIframeDomains&&K.POST_MESSAGE_ENABLED&&(f.whitelistIframeDomains=f.whitelistIframeDomains instanceof Array?f.whitelistIframeDomains:[f.whitelistIframeDomains],f.whitelistIframeDomains.forEach((function(e){var n=new A(t,e),i=j(f,n);G(i,e)})))}};Ae.config=z,c.Visitor=Ae;var Pe=Ae,Me=Se.OptIn,xe=Se.IabPlugin;Pe.getInstance=function(e,t){if(!e)throw new Error("Visitor requires Adobe Marketing Cloud Org ID.");e.indexOf("@")<0&&(e+="@AdobeOrg");var n=function(){var t=c.s_c_il;if(t)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{context:[],tealiumContext:[],isDebugEnabled:!1};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context=t.context,this.tealiumContext=t.tealiumContext,this.isDebugEnabled=t.isDebugEnabled}return r(e,[{key:"mergePayloads",value:function(e){var t=this;this.adobeMappedData={},this.tealiumUtagData=window.utag_data||{},this.tagCommanderData=window.tc_vars||{};var n=void 0;e.forEach((function(e){e.adobeMappedData&&(!n&&e.adobeMappedData.prop10&&(n=e.adobeMappedData.prop10),s.mergeAdobePayloads(t.adobeMappedData,e.adobeMappedData)),e.tealiumUtagData&&s.mergeObjectsDeep(t.tealiumUtagData,e.tealiumUtagData),e.tagCommanderData&&s.mergeObjectsDeep(t.tagCommanderData,e.tagCommanderData)})),n&&(this.adobeMappedData.prop10=n)}},{key:"publish",value:function(e){var t=this;try{this.mergePayloads(e),o.getAllSchemas(this.context.overridenMicroMessages,e).then((function(e){(0!==e.schema.length&&t.trackPrime(e.schema,d),e.adobeData)&&(s.mergeAdobePayloads(t.adobeMappedData,e.adobeData),t.context.isAutomaticAdobePageViewDisabled||(h({adobeMappedData:t.adobeMappedData,eventType:d,isDebugEnabled:t.isDebugEnabled,tealiumUtagData:t.tealiumUtagData,context:t.context}),v(t.tealiumUtagData,t.isDebugEnabled)))}));var n=void 0;n=this.context.isPwa?this.context.tealiumContext?this.context.tealiumContext.tealiumAccountDetailsPWA:this.context.tealiumAccountDetailsPWA:this.context.tealiumContext?this.context.tealiumContext.tealiumAccountDetails:this.context.tealiumAccountDetails,!function(e,t,n){try{new(0,a.TagCommanderPublisher)({config:e,isDebugEnabled:n}).publish(t)}catch(i){console.error("[PlatformAnalyticsPrime] TagCommander publishing failed because of: "+i)}}(this.context.tc_context||this.tealiumUtagData.tc_context,this.context.tc_vars||this.tealiumUtagData.tc_vars,this.isDebugEnabled),m(this.tealiumUtagData,n,this.isDebugEnabled)}catch(i){console.error("[PlatformAnalyticsPrime] Error while publishing view event : "+i)}return!0}},{key:"trackEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;try{this.trackPrime(e,t)}catch(n){console.error("[PlatformAnalyticsPrime] Error while publishing "+t+" event: "+n)}return!0}},{key:"trackPrime",value:function(e,t){var n=this,r=a.UisPublisher,o=this.context&&this.context.applicationName,s=this.context&&this.context.traceIdOfTheView,u=this.context&&this.context.additionalHeaders;c.addPageIdentity(e,this.context),c.addParentView(e,this.context),c.addVisitEvents(e,this.context);var l={applicationName:o,traceIdOfTheView:s,microMessages:e},p=((e[0]||{}).messageContent||{}).referrerId||this.context.pageName;new r({isDebugEnabled:this.isDebugEnabled,eventType:t,label:p,trackApiUrl:g(this.context.isCrossSite),additionalHeaders:u}).publish(l).then((function(e){var r=JSON.parse(e.response);("string"==typeof r&&(r=JSON.parse(r)),"object"!==i(r.adobeMappedData)&&console.error("[trackPrime] error: the response from trackPrime endpoint does not contain the expected data"),t===d&&r.adobeMappedData&&n.context.isAutomaticAdobePageViewDisabled)&&(r.adobeMappedData.pageURL=window.location.href,h({adobeMappedData:r.adobeMappedData,eventType:d,isDebugEnabled:n.isDebugEnabled,tealiumUtagData:r.tealiumUtagData,context:n.context}),v(r.tealiumUtagData,n.isDebugEnabled));t===f&&r.adobeMappedData&&h({adobeMappedData:r.adobeMappedData,eventType:f,isDebugEnabled:n.isDebugEnabled,context:n.context})}))}},{key:"trackPageViewAndPublishToAdobe",value:function(e){var t=this,n=this.context.pageName,r=new a.UisPublisher({isDebugEnabled:this.isDebugEnabled,eventType:d,label:n,trackApiUrl:g(this.context.isCrossSite)}),o={applicationName:this.context&&this.context.applicationName,traceIdOfTheView:this.context&&this.context.traceIdOfTheView,microMessages:e.microMessages};return r.publish(o).then((function(e){var n=JSON.parse(e.response);("string"==typeof n&&(n=JSON.parse(n)),"object"!==i(n.adobeMappedData)&&console.error("[trackPrime] error: the response from trackPrime endpoint does not contain the expected data"),n.adobeMappedData)&&(h({adobeMappedData:n.adobeMappedData,eventType:d,isDebugEnabled:t.isDebugEnabled,context:t.context}),v(n.tealiumUtagData,t.isDebugEnabled));return Promise.resolve(e)}))}}]),e}();function g(e){var t=u.getConfiguration();return e?t.TRACK_API_URL_CROSS_SITE:t.TRACK_API_URL}function m(e,t,n){try{if("object"!==(void 0===e?"undefined":i(e)))return void console.error("[TealiumPublisher] error: trying to publish something that is not an object (type was: "+(void 0===e?"undefined":i(e))+")");if(Object.keys(e).length>0)new(0,a.TealiumPublisher)({tealiumAccountDetails:t,isDebugEnabled:n}).publish(e)}catch(r){console.error("[PlatformAnalyticsPrime] Tealium publishing failed because of: "+r)}}function h(e){try{if("object"!==i(e.adobeMappedData))return void console.error("[AdobePublisher] error: trying to publish something that is not an object (type was: "+i(e.adobeMappedData)+")");if(e.context&&e.context.beaconOffConfig&&e.context.beaconOffConfig.settings&&!1===e.context.beaconOffConfig.settings.sendToAdobeClientSide)return;if(Object.keys(e.adobeMappedData).length>0)new(0,a.AdobePublisher)({eventType:e.eventType,isDebugEnabled:e.isDebugEnabled,context:e.context}).publish(e.adobeMappedData,e.tealiumUtagData)}catch(t){console.error("Adobe publishing failed because of : "+t.stack)}}function v(e,t){try{new(0,a.TravelPixelPublisher)(t).publish(e)}catch(i){var n=((e||{}).pageInfo||{}).pageName;l("Something went wrong with Travel-pixel library","travel-pixel",d,n,!0)}}e.exports={UisPrime:p,publishTealiumData:m,getTrackApiUrl:g}},function(e,t,n){var i=n(18),r=n(19),a=n(21),o=n(22).TagCommanderPublisher,s=n(23);e.exports={UisPublisher:i,AdobePublisher:r,TealiumPublisher:a,TagCommanderPublisher:o,TravelPixelPublisher:s}},function(e,t,n){(function(t){var i=function(){function e(e,t){for(var n=0;n=200&&n.status<300)r({status:"successful",url:e,sentData:t},"uis",o,s,i),f(n);else if(405===n.status&&n.responseURL&&n.responseURL.match(d)){var u=new XMLHttpRequest;u.withCredentials=!0,f(a(n.responseURL,t,u,i,o,s,c))}else r({status:"FAILED - Http "+n.status,url:e,sentData:t},"uis",o,s,i),p(new Error("UIS ("+e+")replied with HTTP status code: "+n.status))},n.onerror=function(){return p(new Error("Could not connect to ",e))},n.ontimeout=function(){return p(new Error("Request timed out."))},n.open(g.method,e,!0),n.setRequestHeader("Content-type","text/plain"),c[u]&&n.setRequestHeader(u,c[u]),c[l]&&n.setRequestHeader(l,c[l]);var m=JSON.stringify(g.body);n.send(m)}))}var o=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isDebugEnabled:!1,eventType:"",label:"",additionalHeaders:{}};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.trackApiUrl=n.trackApiUrl||"/api/uisprime/track",this.requestBody={},this.isDebugEnabled="boolean"==typeof n.isDebugEnabled&&n.isDebugEnabled,this.eventType=n.eventType,this.label=n.label,void 0!==t.uisDebugXmlHttpRequest?this.xmlHttpRequest=t.uisDebugXmlHttpRequest:this.xmlHttpRequest=new XMLHttpRequest,this.additionalHeaders=n.additionalHeaders||{}}return i(e,[{key:"publish",value:function(e){return this.requestBody=e,a(this.trackApiUrl,this.requestBody,this.xmlHttpRequest,this.isDebugEnabled,this.eventType,this.label,this.additionalHeaders)}}]),e}();e.exports=o}).call(this,n(0))},function(e,t,n){var i=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{eventType:s,isDebugEnabled:!1,context:context};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isDebugEnabled=n.isDebugEnabled,this.eventType=n.eventType,this.readyToPublish=Promise.all([r.load(),a.load()]).then((function(e){t.s=e[1],t.s.visitor=e[0]}))}return i(e,[{key:"publish",value:function(e,t){var n=this;return this.readyToPublish.then((function(){var i="";if(n.eventType===s){if(i=((t||{}).pageInfo||{}).pageName,n.s&&n.s.t)try{n.s.t(e)}catch(a){o("Something went wrong with minified appMeasurement lib at this.s.t(data)","adobe-publisher",n.eventType,i,!0)}}else{e.linkTrackVars=Object.keys(e).toString(),function(e){e.events?e.linkTrackEvents=e.events.replace(/=[^,]*/g,""):e.linkTrackEvents="None"}(e);var r=e.linkName||"Custom Event";i=r.replace(/\s/g,"-"),n.s.tl(!0,"o",r,e)}if(o({eventType:n.eventType,sentData:e},"adobe",n.eventType,i,n.isDebugEnabled),n.s&&n.s.clearVars)try{n.s.clearVars()}catch(a){o("Something went wrong with minified appMeasurement lib at this.s.clearVars","adobe-publisher",n.eventType,i,!0)}}))}}]),e}();e.exports=c},function(e,t){function n(e){var t=this;t.s=e;var n=window;n.s_c_in||(n.s_c_il=[],n.s_c_in=0),t._il=n.s_c_il,t._in=n.s_c_in,t._il[t._in]=t,n.s_c_in++,t._c="s_m",t.setup=function(e){n.DIL&&e&&(e.disableDefaultRequest=!0,e.disableScriptAttachment=!0,e.disableCORS=!0,e.secureDataCollection=!1,t.instance=n.DIL.create(e),t.tools=n.DIL.tools)},t.isReady=function(){return!!t.instance},t.getEventCallConfigParams=function(){return t.instance&&t.instance.api&&t.instance.api.getEventCallConfigParams?t.instance.api.getEventCallConfigParams():{}},t.passData=function(e){t.instance&&t.instance.api&&t.instance.api.passData&&t.instance.api.passData(e)}}function i(e){var t=this;t.version="2.6.0";var n=window;n.s_c_in||(n.s_c_il=[],n.s_c_in=0),t._il=n.s_c_il,t._in=n.s_c_in,t._il[t._in]=t,n.s_c_in++,t._c="s_c";var i=n.AppMeasurement.Pb;i||(i=null);var r,a,o,s=n;try{for(r=s.parent,a=s.location;r&&r.location&&a&&""+r.location!=""+a&&s.location&&""+r.location!=""+s.location&&r.location.host==a.host;)r=(s=r).parent}catch(u){}t.F=function(e){try{console.log(e)}catch(t){}},t.Ma=function(e){return""+parseInt(e)==""+e},t.replace=function(e,t,n){return!e||0>e.indexOf(t)?e:e.split(t).join(n)},t.escape=function(e){var n,i;if(!e)return e;for(e=encodeURIComponent(e),n=0;7>n;n++)i="+~!*()'".substring(n,n+1),0<=e.indexOf(i)&&(e=t.replace(e,i,"%"+i.charCodeAt(0).toString(16).toUpperCase()));return e},t.unescape=function(e){if(!e)return e;e=0<=e.indexOf("+")?t.replace(e,"+"," "):e;try{return decodeURIComponent(e)}catch(n){}return unescape(e)},t.wb=function(){var e,i=n.location.hostname,r=t.fpCookieDomainPeriods;if(r||(r=t.cookieDomainPeriods),i&&!t.Ea&&!/^[0-9.]+$/.test(i)&&(r=2<(r=r?parseInt(r):2)?r:2,0<=(e=i.lastIndexOf(".")))){for(;0<=e&&1i?"":t.unescape(n.substring(i+2+e.length,0>r?n.length:r)))?e:""},t.c_w=t.cookieWrite=function(e,n,i){var r,a=t.wb(),o=t.cookieLifetime;return n=""+n,o=o?(""+o).toUpperCase():"",i&&"SESSION"!=o&&"NONE"!=o&&((r=""!=n?parseInt(o||0):-60)?(i=new Date).setTime(i.getTime()+1e3*r):1==i&&(r=(i=new Date).getYear(),i.setYear(r+5+(1900>r?1900:0)))),e&&"NONE"!=o?(t.d.cookie=t.escape(e)+"="+t.escape(""!=n?n:"[[B]]")+"; path=/;"+(i&&"SESSION"!=o?" expires="+i.toUTCString()+";":"")+(a?" domain="+a+";":""),t.cookieRead(e)==n):0},t.L=[],t.ia=function(e,n,i){if(t.Fa)return 0;t.maxDelay||(t.maxDelay=250);var r=0,a=(new Date).getTime()+t.maxDelay,o=t.d.visibilityState,s=["webkitvisibilitychange","visibilitychange"];if(o||(o=t.d.webkitVisibilityState),o&&"prerender"==o){if(!t.ja)for(t.ja=1,i=0;in){t.L.unshift(e),setTimeout(t.delayReady,parseInt(t.maxDelay/2));break}t.Fa=1,t[e.m].apply(t,e.a),t.Fa=0}},t.setAccount=t.sa=function(e){var n,i;if(!t.ia("setAccount",arguments))if(t.account=e,t.allAccounts)for(n=t.allAccounts.concat(e.split(",")),t.allAccounts=[],n.sort(),i=0;ia.indexOf(".contextData."))switch(c=o.substring(0,4),u=o.substring(4),o){case"transactionID":o="xact";break;case"channel":o="ch";break;case"campaign":o="v0";break;default:t.Ma(u)&&("prop"==c?o="c"+u:"eVar"==c?o="v"+u:"list"==c?o="l"+u:"hier"==c&&(o="h"+u,s=s.substring(0,255)))}l+="&"+t.escape(o)+"="+t.escape(s)}}""!=l&&(l+="&."+e)}return l},t.usePostbacks=0,t.zb=function(){var e,n,r,a,o,s,c,u,l="",d="",f="",p=a="";if(t.lightProfileID?(e=t.P,(d=t.lightTrackVars)&&(d=","+d+","+t.na.join(",")+",")):(e=t.g,(t.pe||t.linkType)&&(d=t.linkTrackVars,f=t.linkTrackEvents,t.pe&&(a=t.pe.substring(0,1).toUpperCase()+t.pe.substring(1),t[a]&&(d=t[a].Nb,f=t[a].Mb))),d&&(d=","+d+","+t.H.join(",")+","),f&&(f=","+f+",",d&&(d+=",events,")),t.events2&&(p+=(""!=p?",":"")+t.events2)),t.visitor&&t.visitor.getCustomerIDs){if(a=i,o=t.visitor.getCustomerIDs())for(n in o)Object.prototype[n]||"object"==typeof(r=o[n])&&(a||(a={}),r.id&&(a[n+".id"]=r.id),r.authState&&(a[n+".as"]=r.authState));a&&(l+=t.r("cid",a))}for(t.AudienceManagement&&t.AudienceManagement.isReady()&&(l+=t.r("d",t.AudienceManagement.getEventCallConfigParams())),n=0;nt||0<=i&&t>i||0<=r&&t>r)&&(i=e.protocol&&1t?0:t)+"/":"")+o),o},t.M=function(e){var n,i,r=t.D(e),a="",o=0;return r&&(n=e.protocol,i=e.onclick,!e.href||"A"!=r&&"AREA"!=r||i&&n&&!(0>n.toLowerCase().indexOf("javascript"))?i?(a=t.replace(t.replace(t.replace(t.replace(""+i,"\r",""),"\n",""),"\t","")," ",""),o=2):"INPUT"==r||"SUBMIT"==r?(e.value?a=e.value:e.innerText?a=e.innerText:e.textContent&&(a=e.textContent),o=3):"IMAGE"==r&&e.src&&(a=e.src):a=t.Ia(e),a)?{id:a.substring(0,100),type:o}:0},t.Qb=function(e){for(var n=t.D(e),i=t.M(e);e&&!i&&"BODY"!=n;)(e=e.parentElement?e.parentElement:e.parentNode)&&(n=t.D(e),i=t.M(e));return i&&"BODY"!=n||(e=0),e&&(0<=(n=e.onclick?""+e.onclick:"").indexOf(".tl(")||0<=n.indexOf(".trackLink("))&&(e=0),e},t.Hb=function(){var e,i,r,a,o=t.linkObject,s=t.linkType,c=t.linkURL;if(t.oa=1,o||(t.oa=0,o=t.clickObject),o){for(e=t.D(o),i=t.M(o);o&&!i&&"BODY"!=e;)(o=o.parentElement?o.parentElement:o.parentNode)&&(e=t.D(o),i=t.M(o));if(i&&"BODY"!=e||(o=0),o&&!t.linkObject){var u=o.onclick?""+o.onclick:"";(0<=u.indexOf(".tl(")||0<=u.indexOf(".trackLink("))&&(o=0)}}else t.oa=1;if(!c&&o&&(c=t.Ia(o)),c&&!t.linkLeaveQueryString&&(0<=(r=c.indexOf("?"))&&(c=c.substring(0,r))),!s&&c){var l,d=0,f=0;if(t.trackDownloadLinks&&t.linkDownloadFileTypes)for(r=(u=c.toLowerCase()).indexOf("?"),a=u.indexOf("#"),0<=r?0<=a&&an)return 0}return 1},t.R=function(e,n){var i,r,a,o,s,c;for(i=0;2>i;i++)for(r=0i;i++)for(r=0n.indexOf("-")){for(n=0;16>n;n++)e=Math.floor(Math.random()*e),i+="0123456789ABCDEF".substring(e,e+1),e=Math.floor(Math.random()*a),r+="0123456789ABCDEF".substring(e,e+1),e=a=16;n=i+"-"+r}return t.cookieWrite("s_fid",n,1)||(n=0),n},t.t=t.track=function(e,i){var r,a=new Date,o="s"+Math.floor(a.getTime()/108e5)%10+Math.floor(1e13*Math.random()),c=a.getYear();c="t="+t.escape(a.getDate()+"/"+a.getMonth()+"/"+(1900>c?c+1900:c)+" "+a.getHours()+":"+a.getMinutes()+":"+a.getSeconds()+" "+a.getDay()+" "+a.getTimezoneOffset());t.visitor&&t.visitor.getAuthState&&(t.authState=t.visitor.getAuthState()),t.p("_s"),t.fb(e)||(i&&t.R(i),e&&(r={},t.Va(r,0),t.R(e)),t.Db()&&!t.visitorOptedOut&&(t.analyticsVisitorID||t.marketingCloudVisitorID||(t.fid=t.xb()),t.Hb(),t.usePlugins&&t.doPlugins&&t.doPlugins(t),t.account&&(t.abort||(t.trackOffline&&!t.timestamp&&(t.timestamp=Math.floor(a.getTime()/1e3)),a=n.location,t.pageURL||(t.pageURL=a.href?a.href:a),t.referrer||t.Wa||(a=t.Util.getQueryParam("adobe_mc_ref",null,null,!0),t.referrer=a||void 0===a?void 0===a?"":a:s.document.referrer),t.Wa=1,t.referrer=t.vb(t.referrer),t.p("_g")),t.Ab()&&!t.abort&&(t.visitor&&!t.supplementalDataID&&t.visitor.getSupplementalDataID&&(t.supplementalDataID=t.visitor.getSupplementalDataID("AppMeasurement:"+t._in,!t.expectSupplementalData)),t.Bb(),c+=t.zb(),t.Gb(o,c),t.p("_t"),t.referrer=""))),e&&t.R(r,1)),t.abort=t.supplementalDataID=t.timestamp=t.pageURLRest=t.linkObject=t.clickObject=t.linkURL=t.linkName=t.linkType=n.s_objectID=t.pe=t.pev1=t.pev2=t.pev3=t.e=t.lightProfileID=0},t.za=[],t.registerPreTrackCallback=function(e){for(var n=[],i=1;it.O&&t.Qa(t.i),t.ua(500);else{var e=t.ob();0=t.offlineThrottleDelay?0:(e=t.C()-t.Pa,t.offlineThrottleDelayt.O&&t.Qa(t.i),t.ga(),t.ua(500)},r.onreadystatechange=function(){4==r.readyState&&(200==r.status?r.va():r.Ha())},t.Pa=t.C(),1==a||2==a){var s=e.indexOf("?");o=e.substring(0,s),s=(s=e.substring(s+1)).replace(/&callback=[a-zA-Z0-9_.\[\]]+/,""),1==a?(r.open("POST",o,!0),r.send(s)):2==a&&(r.open("POST",o),r.send(s))}else if(r.src=e,3==a){if(t.Na)try{o.removeChild(t.Na)}catch(c){}o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),t.Na=t.B}r.G=setTimeout((function(){r.G&&(r.complete?r.va():(t.trackOffline&&r.abort&&r.abort(),r.Ha()))}),5e3),t.rb=e,t.B=n["s_i_"+t.replace(t.account,",","_")]=r,(t.useForcedLinkTracking&&t.K||t.A)&&(t.forcedLinkTrackingTimeout||(t.forcedLinkTrackingTimeout=250),t.ha=setTimeout(t.ga,t.forcedLinkTrackingTimeout))},t.sb=function(){if(t.ra()&&!(t.Oa>t.O))try{n.localStorage.removeItem(t.pa()),t.Oa=t.C()}catch(e){}},t.Qa=function(e){if(t.ra()){t.Sa();try{n.localStorage.setItem(t.pa(),n.JSON.stringify(e)),t.O=t.C()}catch(i){}}},t.Sa=function(){if(t.trackOffline)for((!t.offlineLimit||0>=t.offlineLimit)&&(t.offlineLimit=10);t.i.length>t.offlineLimit;)t.Ga()},t.forceOffline=function(){t.qa=!0},t.forceOnline=function(){t.qa=!1},t.pa=function(){return t.offlineFilename+"-"+t.visitorNamespace+t.account},t.C=function(){return(new Date).getTime()},t.La=function(e){return 0!=(e=e.toLowerCase()).indexOf("#")&&0!=e.indexOf("about:")&&0!=e.indexOf("opera:")&&0!=e.indexOf("javascript:")},t.setTagContainer=function(e){var n,i,r;for(t.Kb=e,n=0;n(""+r[n]).indexOf("s_c_il"))&&(e[n]=r[n]);if(i.mmq)for(n=0;n(o=(i=""+i).indexOf("?"))?s:(i=r+i.substring(o+1)+r,a&&(0<=i.indexOf(r+e+r)||0<=i.indexOf(r+e+"="+r))?void 0:(0<=(o=i.indexOf("#"))&&(i=i.substr(0,o)+r),0>(o=i.indexOf(r+e+"="))||(0<=(o=(i=i.substring(o+r.length+e.length+1)).indexOf(r))&&(i=i.substring(0,o)),0=r;r++)76>r&&(t.g.push("prop"+r),t.P.push("prop"+r)),t.g.push("eVar"+r),t.P.push("eVar"+r),6>r&&t.g.push("hier"+r),4>r&&t.g.push("list"+r);r="pe pev1 pev2 pev3 latitude longitude resolution colorDepth javascriptVersion javaEnabled cookiesEnabled browserWidth browserHeight connectionType homepage pageURLRest marketingCloudOrgID".split(" "),t.g=t.g.concat(r),t.H=t.H.concat(r),t.ssl=0<=n.location.protocol.toLowerCase().indexOf("https"),t.charSet="UTF-8",t.contextData={},t.offlineThrottleDelay=0,t.offlineFilename="AppMeasurement.offline",t.Pa=0,t.ma=0,t.O=0,t.Oa=0,t.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx",t.w=n,t.d=n.document;try{if(t.Ta=!1,navigator){var c=navigator.userAgent;("Microsoft Internet Explorer"==navigator.appName||0<=c.indexOf("MSIE ")||0<=c.indexOf("Trident/")&&0<=c.indexOf("Windows NT 6"))&&(t.Ta=!0)}}catch(d){}t.ga=function(){t.ha&&(n.clearTimeout(t.ha),t.ha=i),t.l&&t.K&&t.l.dispatchEvent(t.K),t.A&&("function"==typeof t.A?t.A():t.l&&t.l.href&&(t.d.location=t.l.href)),t.l=t.K=t.A=0},t.Ra=function(){t.b=t.d.body,t.b?(t.v=function(e){var i,a,o,c,u;if(!(t.d&&t.d.getElementById("cppXYctnr")||e&&e["s_fe_"+t._in])){if(t.Ca){if(!t.useForcedLinkTracking)return t.b.removeEventListener("click",t.v,!0),void(t.Ca=t.useForcedLinkTracking=0);t.b.removeEventListener("click",t.v,!1)}else t.useForcedLinkTracking=0;t.clickObject=e.srcElement?e.srcElement:e.target;try{if(!t.clickObject||t.N&&t.N==t.clickObject||!(t.clickObject.tagName||t.clickObject.parentElement||t.clickObject.parentNode))t.clickObject=0;else{var l=t.N=t.clickObject;if(t.la&&(clearTimeout(t.la),t.la=0),t.la=setTimeout((function(){t.N==l&&(t.N=0)}),1e4),o=t.Ja(),t.track(),o=0&&(t="")),t&&(r=0,b.push(t),t=""),(n=DIL.getDil(i,r))instanceof DIL&&n.api.getPartner()===i&&n.api.getContainerNSID()===r)return n;if(!(this instanceof DIL))return new DIL(e,"DIL was not instantiated with the 'new' operator, returning a valid instance with partner = "+i+" and containerNSID = "+r);DIL.registerDil(this,i,r);var _={IS_HTTPS:d||"https:"===document.location.protocol,SIX_MONTHS_IN_MINUTES:259200,IE_VERSION:function(){if(document.documentMode)return document.documentMode;for(var e=7;e>4;e--){var t=document.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]>'}");if((n=e.getInstance(t,{idSyncContainerID:r}))===Object(n)&&n instanceof e&&"function"==typeof n.isAllowed&&"function"==typeof n.getMarketingCloudVisitorID&&"function"==typeof n.getCustomerIDs&&"function"==typeof n.isOptedOut&&"function"==typeof n.publishDestinations)return this.VisitorAPI=e,n.isAllowed()?(this.instance=n,i=function(e){"VisitorAPI"!==s.releaseType&&(s.mid=e,s.releaseType="VisitorAPI",s.releaseRequests())},"string"==typeof(a=n.getMarketingCloudVisitorID(i))&&a.length?void i(a):void setTimeout((function(){"VisitorAPI"!==s.releaseType&&(s.releaseType="timeout",s.releaseRequests())}),this.getLoadTimeout())):(this.releaseType="VisitorAPI is not allowed to write cookies",void this.releaseRequests());throw this.releaseType="invalid instance",o="Invalid Visitor instance.",n===Object(n)&&"function"!=typeof n.publishDestinations&&(o+=" In particular, visitorInstance.publishDestinations is not a function. This is needed to fire URL destinations in DIL v8.0+ and should be present in Visitor v3.3+ ."),new Error(o)}throw this.noVisitorAPI=!0,new Error("Visitor does not exist.")}catch(e){if(!v)throw new Error("Error in processing Visitor API, which is a hard dependency for DIL v8.0+: "+e.message);this.releaseRequests()}},releaseRequests:function(){this.calledBack=!0,D.registerRequest()},getMarketingCloudVisitorID:function(){return this.instance?this.instance.getMarketingCloudVisitorID():null},getMIDQueryString:function(){var e=E.isPopulatedString,t=this.getMarketingCloudVisitorID();return e(this.mid)&&this.mid===t||(this.mid=t),e(this.mid)?"d_mid="+this.mid+"&":""},getCustomerIDs:function(){return this.instance?this.instance.getCustomerIDs():null},getCustomerIDsQueryString:function(e){if(e===Object(e)){var t,n,i,r,a="",o=[],s=[];for(t in e)e.hasOwnProperty(t)&&(s[0]=t,(n=e[t])===Object(n)&&(s[1]=n.id||"",s[2]=n.authState||0,o.push(s),s=[]));if(r=o.length)for(i=0;i2048&&(c=c.substring(0,2048).substring(0,c.lastIndexOf("&"))),{corsSrc:s+"?_ts="+(new Date).getTime(),src:c,originalSrc:u,corsPostData:g+m+p,isDeclaredIdCall:""!==d}},fireRequest:function(e){if("img"===e.tag)this.fireImage(e);else{var t=D.declaredId,n=t.declaredId.request||t.declaredId.init||{},i={dpid:n.dpid||"",dpuuid:n.dpuuid||""};this.fireCORS(e,i)}},fireImage:function(e){var n,i,r=D;r.abortRequests||(r.firing=!0,n=new Image(0,0),r.sent.push(e),n.onload=function(){r.firing=!1,r.fired.push(e),r.num_of_img_responses++,r.registerRequest()},i=function(n){t="imgAbortOrErrorHandler received the event of type "+n.type,b.push(t),r.abortRequests=!0,r.firing=!1,r.errored.push(e),r.num_of_img_errors++,r.registerRequest()},n.addEventListener("error",i),n.addEventListener("abort",i),n.src=e.src)},fireCORS:function(e,n){var r=this,a=D,o=this.corsMetadata.corsType,s=e.corsSrc,c=e.corsInstance,u=e.corsPostData,l=e.postCallbackFn,d="function"==typeof l;if(!a.abortRequests&&!h){a.firing=!0;try{c.open("post",s,!0),"XMLHttpRequest"===o&&(c.withCredentials=!0,c.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),c.onreadystatechange=function(){4===this.readyState&&200===this.status&&function(o){var s;try{if((s=JSON.parse(o))!==Object(s))return void r.handleCORSError(e,n,"Response is not JSON")}catch(t){return void r.handleCORSError(e,n,"Error parsing response as JSON")}try{var c=e.callbackFn;a.firing=!1,a.fired.push(e),a.num_of_cors_responses++,c(s,n),d&&l(s,n)}catch(e){e.message="DIL handleCORSResponse caught error with message "+e.message,t=e.message,b.push(t),e.filename=e.filename||"dil.js",e.partner=i,DIL.errorModule.handleError(e);try{c({error:e.name+"|"+e.message},n),d&&l({error:e.name+"|"+e.message},n)}catch(e){}}finally{a.registerRequest()}}(this.responseText)}),c.onerror=function(){r.handleCORSError(e,n,"onerror")},c.ontimeout=function(){r.handleCORSError(e,n,"ontimeout")},c.send(u)}catch(t){this.handleCORSError(e,n,"try-catch")}a.sent.push(e),a.declaredId.declaredId.request=null}},handleCORSError:function(e,t,n){D.num_of_cors_errors++,D.corsErrorSources.push(n)},handleRequestError:function(e,t){var n=D;b.push(e),n.abortRequests=!0,n.firing=!1,n.errored.push(t),n.registerRequest()}},E={isValidPdata:function(e){return!!(e instanceof Array&&this.removeEmptyArrayValues(e).length)},isValidLogdata:function(e){return!this.isEmptyObject(e)},isEmptyObject:function(e){if(e!==Object(e))return!0;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0},removeEmptyArrayValues:function(e){var t,n=0,i=e.length,r=[];for(n=0;n0&&void 0!==arguments[0]?arguments[0]:{tealiumAccountDetails:{},env:void 0,isDebugEnabled:void 0};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!a.isBrowser())throw new Error("Tealium is only supported on a browser");this.isDebugEnabled=t.isDebugEnabled,this.tAccount="expedia",t.tealiumAccountDetails&&t.tealiumAccountDetails.tealiumAccountName&&(this.tAccount=t.tealiumAccountDetails.tealiumAccountName),this.tProfile="main",t.tealiumAccountDetails&&t.tealiumAccountDetails.tealiumProfileName&&(this.tProfile=t.tealiumAccountDetails.tealiumProfileName),this.env=a.isTestEnvironment()?"dev":"prod"}return r(e,[{key:"publish",value:function(e){return this.tAccount===s||this.tProfile===s||e&&e.context&&e.context.clientInfo&&e.context.clientInfo.requestMadeByBot||e&&e.pageInfo&&e.pageInfo.pageName&&c.test(e.pageInfo.pageName)?Promise.resolve():function(e,t,n,i,r){return new Promise((function(a){document.body?(l(e,t,n,i,r),a()):document.onreadystatechange=function(){"complete"===document.readyState&&(l(e,t,n,i,r),a())}}))}(e,this.tAccount,this.tProfile,this.env,this.isDebugEnabled)}}]),e}();function l(e,t,n,r,a){window.utag_data=e,document.getElementById("tealiumjs")?"object"===i(window.utag)&&"function"==typeof window.utag.view&&window.utag.view(e):function(e,t,n){var i=this,r=document.createElement("script");r.setAttribute("id","tealiumjs"),r.setAttribute("async",""),r.onerror=function(e){console.error("Error loading Tealium script",e),o(e,"tealium","view","error",i.isDebugEnabled)},r.src="//tags.tiqcdn.com/utag/"+e+"/"+t+"/"+n+"/utag.js",document.body.appendChild(r)}(t,n,r);var s=(e.pageInfo||{}).pageName;o(e,"tealium","view",s,a)}e.exports=u},function(e,t,n){var i=function(){function e(e,t){for(var n=0;n1){var n=new Set;t.forEach((function(e){e.traceId&&n.add(e.traceId)}));var i=[];n.forEach((function(e){i.push(e)})),i.length>1&&e.push({schemaName:"mergeTraces",messageContent:{traceIds:i}})}}e.exports={getAllSchemas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={},a=[],o=t[0].context.pageName;return u(a,t),function(e,t){!function(e,t){t.prop41=function(){var e=document.documentElement.getAttribute("data-version");if(e)return e;if(window.uitk&&window.uitk.version)return window.uitk.version;return"unknown"}().match(/^v(\d+\.\d+\.\d+)/)?RegExp.$1:"unknown",t.prop50="PLATFORM-ANALYTICS-PRIME-JAVA "+e+"|PLATFORM-ANALYTICS-PRIME-JS 1.16.5"}(e,t)}(t[0].version,n),e.length>0&&e.forEach((function(e){a.push(e)})),s(n),r.load().then((function(e){return o&&o.length>0&&function(e,t,n,r){if(e){var a=e[0];a&&a.context&&(t.cookieDomainPeriods=a.context.cookieDomainPeriods,t.fpCookieDomainPeriods=a.context.fpCookieDomainPeriods)}var o={pageName:n,appMeasurement:t};c(i.populate(o),r)}(t,e,o,n),{adobeData:n,schema:a}}))},populateVisitorId:s,captureMergeTraces:u,updateAdobeScollDepthParameters:c}},function(e,t,n){(function(t){var n=1,i=2;e.exports.populate=function(e){var r={},a=e.appMeasurement.getPreviousValue(e.pageName,"s_ppn");r.previousPageName=a;var o=[],s=(t.location||{}).hostname||void 0;try{s&&s.indexOf("chase.com")<0&&(o=e.appMeasurement.getPercentPageViewed(a));var c=e.pageName&&"no value"!==e.pageName&&o?o[n]+"|"+function(e){return e[n]-e[i]}(o):"";r.scrollDepth="undefined|NaN"===c?"":c}catch(u){console.log(u),r.scrollDepth=""}return r}}).call(this,n(0))},function(e,t,n){var i=n(1).toLogStore,r="pageIdentity",a="parentView",o="events";function s(e,t){var n,i=(n=t,e.filter((function(e){return e.schemaName===o&&e.messageContent.name===n})));0===i.length&&(i={schemaName:o,messageContent:{name:t}},e.push(i))}function c(e,t){return e.filter((function(e){return e.schemaName===t}))}e.exports={addPageIdentity:function(e,t){if(!(c(e,r).length>0))if(t.pageIdentity)e.push({schemaName:r,messageContent:t.pageIdentity});else{var n="PlatformAnalyticsPrime: pageIdentity not available in PlatformAnalytics instance";console.error(n),i(n,"PlatformAnalyticsPrime","track","error",!1)}},addParentView:function(e,t){c(e,a).length>0||e.push({schemaName:a,messageContent:{applicationNameOfTheView:t.applicationName,traceIdOfTheView:t.traceIdOfTheView}})},addVisitEvents:function(e,t){t.newVisit&&s(e,"NewVisit"),t.entryPageView&&s(e,"EntryPageView")}}},function(e,t,n){var i=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.platformAnalyticsInstance=t}return i(e,[{key:"pageName",get:function(){return this.platformAnalyticsInstance._ctx.pageName}}]),e}();e.exports=r},function(e,t,n){var i=n(2),r=n(3),a=n(6),o="unknown";e.exports={updateContextualInfoWithFirstPayload:function(e,t){e=e||{},t&&(t.applicationName&&(e.applicationName=t.applicationName),t.traceId&&(e.traceIdOfTheView=t.traceId),t.context&&Object.keys(t.context).forEach((function(n){"pageIdentity"===n&&e.pageIdentity||"pageName"===n||(e[n]=t.context[n])})),t.tealiumContext&&(e.tealiumContext=e.tealiumContext||{},Object.keys(t.tealiumContext).forEach((function(n){e.tealiumContext[n]=t.tealiumContext[n]}))))},createContextualInfo:function(e){var t={};if(t.env=i.isTestEnvironment()?"dev":"prod",t.overridenMicroMessages=e&&e.overridenMicroMessages||[],t.deviceId=e&&e.deviceId||r.getCookie("DUAID"),t.overridenMicroMessages){var n=a.searchPageIdentity(t.overridenMicroMessages);n&&(t.pageIdentity=n.messageContent)}return t.pageName=t.pageIdentity?t.pageIdentity.pageIdentifier:o,t.hasPub=!1,t.isPwa=!!e.isPwa,t.isClientSidePageLoad=!1,t.isCrossSite=e.isCrossSite,t.traceIdOfTheView=e.traceIdOfTheView,t.applicationName=e.applicationName,t.isAutomaticAdobePageViewDisabled=!!e.isAutomaticAdobePageViewDisabled,t.additionalHeaders=e&&e.additionalHeaders||{},t},updatePageName:function(e,t){var n=e._ctx.pageName;return n===o&&(t.context&&t.context.pageIdentity?n=t.context.pageIdentity.pageIdentifier:t.adobeMappedData&&t.adobeMappedData.pageName?n=t.adobeMappedData.pageName:t.tealiumUtagData&&t.tealiumUtagData.pageInfo&&t.tealiumUtagData.pageInfo.pageName&&(n=((t.tealiumUtagData||{}).pageInfo||{}).pageName)),e._ctx.pageName=n,e.pageName=n,t.context.pageName=n,t.adobeMappedData&&t.adobeMappedData.pageName&&(t.adobeMappedData.pageName=n),t.tealiumUtagData&&t.tealiumUtagData.pageInfo&&t.tealiumUtagData.pageInfo.pageName&&(t.tealiumUtagData.pageInfo.pageName=n),n},UNSPECIFIED:o}},function(e,t,n){var i=n(6).mergeObjects,r=n(31),a=n(32),o=n(33);e.exports={injectMarketingData:function(e,t){if(e){var n=r.getMarketingDataFromCesc();e.adobeMappedData||(e.adobeMappedData={}),a.map(n,e.adobeMappedData,t),e.tealiumUtagData&&o.map(n,e.tealiumUtagData)}},updateDebugData:function(e){e.debug&&(e.adobeMappedData=e.adobeMappedData||{},e.debug.adobeMappedData=e.debug.adobeMappedData||{},i(e.debug.adobeMappedData,e.adobeMappedData),e.tealiumUtagData=e.tealiumUtagData||{},e.debug.tealiumUtagData=e.debug.tealiumUtagData||{},i(e.debug.tealiumUtagData,e.tealiumUtagData))}}},function(e,t,n){var i=function(){function e(e,t){for(var n=0;n1?JSON.parse(e):{}}var o="eml",s="dps",c="sem",u="semdtl",l="aff",d="ola",f="icm",p="entryPage",g="cid",m="cidVisit",h="gclid",v="seo",b="mcicid",y="visitNumber",k="hitNumber",_="marketingClick";function C(e){var t={},n=I(e,m);t.campaignIdVisit=n.getCampaignValue(),t.campaignIdVisitTimestamp=n.getTimestamp(),t.hitLevelCampaignId=n.getCampaignValue();var i=I(e,g);t.campaignId30Day=i.getCampaignValue(),t.campaignId30DayTimestamp=i.getTimestamp();var r=I(e,o);t.emailMarketingCode=r.getCampaignValue(),t.emailMarketingCodeTimestamp=r.getTimestamp();var a=I(e,s);t.distributionPartner=a.getCampaignValue(),t.distributionPartnerTimestamp=a.getTimestamp();var C=I(e,c);t.searchEngineMarketingCode=C.getCampaignValue(),t.searchEngineMarketingCodeTimestamp=C.getTimestamp();var D=I(e,l);t.affiliateMarketingCode=D.getCampaignValue(),t.affiliateMarketingCodeTimestamp=D.getTimestamp();var S=I(e,d);t.onlineAdvertisingCode=S.getCampaignValue(),t.onlineAdvertisingCodeTimestamp=S.getTimestamp();var w=I(e,f);t.intraCompanyMarketingCode=w.getCampaignValue(),t.intraCompanyMarketingCodeTimestamp=w.getTimestamp(),t.campaignIdInternalVisit=function(e,t){if(e&&t){var n=decodeURIComponent(t.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(e).replace(/[\\.\\+\\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"));return""!==n?n:null}return null}(b,window.location.href);var T=I(e,u);t.searchEngineMarketingDetails=T.getCampaignValue(),t.searchEngineMarketingDetailsTimestamp=T.getTimestamp();var E=I(e,h);t.googleClickIdentifier=E.getCampaignValue(),t.googleClickIdentifierTimestamp=E.getTimestamp();var O=I(e,v);t.searchEngineOptimisationCodeTimestamp=O.getTimestamp();var A=I(e,_);t.marketingClick=A.getCampaignValue();var P=I(e,p);t.entryPage=P.getCampaignValue();var M=I(e,y);t.visitNumber=M.getCampaignValue();var x=I(e,k);return t.hitNumber=x.getCampaignValue(),t}function I(e,t){if(e[t])try{var n=e[t];return new r(n[0],n[1])}catch(i){console.error("Campaign '{}' does not exist in cesc {}",t,e)}return new r(null,null)}e.exports={getCescCookieAsJson:a,toMarketingData:C,getMarketingDataFromCesc:function(){return C(a())}}},function(e,t,n){function i(e){return e||"NA"}e.exports={map:function(e,t,n){t.eVar10=i(e.campaignId30Day),t.eVar12=i(e.campaignIdInternalVisit),t.eVar13=i(e.emailMarketingCode),t.eVar14=i(e.distributionPartner),t.eVar15=i(e.searchEngineMarketingCode),t.eVar16=i(e.affiliateMarketingCode),t.eVar17=i(e.entryPage),t.eVar19=i(e.onlineAdvertisingCode),t.eVar21=i(e.intraCompanyMarketingCode),t.eVar23=i(e.visitNumber),t.eVar36=i(e.searchEngineMarketingDetails),t.eVar26=i(e.googleClickIdentifier),t.campaign=i(e.campaignIdVisit),e.hitLevelCampaignId&&"true"===e.marketingClick&&!n?(t.eVar22=e.hitLevelCampaignId,t.eVar27=e.hitLevelCampaignId,t.eVar33=e.hitLevelCampaignId,function(e,t){e.events?e.events.includes(t)||(e.events+=","+t):e.events=t}(t,"event227")):(delete t.eVar22,delete t.eVar27,delete t.eVar33)}}},function(e,t,n){e.exports={map:function(e,t){t.context||(t.context={}),t.context.marketingAttribution||(t.context.marketingAttribution={}),e.emailMarketingCode&&e.emailMarketingCodeTimestamp&&(t.context.marketingAttribution.emailId=e.emailMarketingCode,t.context.marketingAttribution.emailIdTimestamp=e.emailMarketingCodeTimestamp),e.distributionPartner&&e.distributionPartnerTimestamp&&(t.context.marketingAttribution.distributionPartners=e.distributionPartner,t.context.marketingAttribution.distributionPartnersTimestamp=e.distributionPartnerTimestamp),e.searchEngineMarketingCode&&e.searchEngineMarketingCodeTimestamp&&(t.context.marketingAttribution.searchEngineMarketingCode=e.searchEngineMarketingCode,t.context.marketingAttribution.searchEngineMarketingCodeTimestamp=e.searchEngineMarketingCodeTimestamp),e.googleClickIdentifier&&e.googleClickIdentifierTimestamp&&(t.context.marketingAttribution.googleClickIdentifier=e.googleClickIdentifier,t.context.marketingAttribution.googleClickIdentifierTimestamp=e.googleClickIdentifierTimestamp),e.searchEngineMarketingDetails&&e.searchEngineMarketingDetailsTimestamp&&(t.context.marketingAttribution.searchEngineMarketingDetails=e.searchEngineMarketingDetails,t.context.marketingAttribution.searchEngineMarketingDetailsTimestamp=e.searchEngineMarketingDetailsTimestamp),e.affiliateMarketingCode&&e.affiliateMarketingCodeTimestamp&&(t.context.marketingAttribution.affiliateMarketingCode=e.affiliateMarketingCode,t.context.marketingAttribution.affiliateMarketingCodeTimestamp=e.affiliateMarketingCodeTimestamp),e.onlineAdvertisingCode&&e.onlineAdvertisingCodeTimestamp&&(t.context.marketingAttribution.onlineAdvertisingCode=e.onlineAdvertisingCode,t.context.marketingAttribution.onlineAdvertisingCodeTimestamp=e.onlineAdvertisingCodeTimestamp),e.intraCompanyMarketingCode&&e.intraCompanyMarketingCodeTimestamp&&(t.context.marketingAttribution.intraCompanyMarketingCode=e.intraCompanyMarketingCode,t.context.marketingAttribution.intraCompanyMarketingCodeTimestamp=e.intraCompanyMarketingCodeTimestamp),e.campaignIdVisit&&e.campaignIdVisitTimestamp&&(t.context.marketingAttribution.campaignIdVisit=e.campaignIdVisit,t.context.marketingAttribution.campaignIdVisitTimestamp=e.campaignIdVisitTimestamp),e.campaignId30Day&&e.campaignId30DayTimestamp&&(t.context.marketingAttribution.campaignId=e.campaignId30Day,t.context.marketingAttribution.campaignIdTimestamp=e.campaignId30DayTimestamp),e.entryPage&&(t.context.marketingAttribution.entryPage=e.entryPage),t.context.marketingAttribution.pageName="D=pageName"}}}])}}]); //# sourceMappingURL=pap.3dd18d4cdf56d0fd29b2.js.map